CA-139588: Try to prevent Index was out of range exception by invoking on the event thread

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
CA-139888: Changing window size should not change the number of items minimized in Outlook-style navigation panel

This fixes the following problem:
When the main window is resized, we set the minimum width of the right side panel (Panel2MinSize) to half the size of the window so that the tab contents are visible. This is fine on most situations, but on a higher screen resolution (e.g. 1920x1080) the following problem occurs:
- starting with the main window at minimum size, when the window is maximized, the Panel2MinSize is set to half window's size (e.g. 960)
- when the main window is restored back to the minimum size, the split container is not resized because there is a conflict between Panel2MinSize and the size of the window itself (Panel1MinSize + Panel2MinSize > window's width)
- therefore the navigation panel is not visible and also the content of the tab control may appear out of scale.

To fix this, we set the Panel2MinSize to half of the window's minimum width. This way the right side panel will always fit in the window, including when it is restored to minimum size.
This also fixes [CA-137956] - Restoring Maximised XenCenter does not resize the main panel properly.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
Merge pull request #120 from MihaelaStoica/CA-139588

CA-139588: Try to prevent Index was out of range exception by invoking o...
CA-140330: Use originator in session.login_with_password
-Calling new overload of the session.login_with_password() XAPI function (+originator field). This lets XenServer to group all sessions from a given XenCenter instance.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
CA-118423: Fix the issue where a non-management bond was shown as disconnected in XenCenter because the NICs tab was not refreshed when the properties of the new bond changed.

- Register a PIF CollectionChanged event, so the page is refreshed when a bond is added / deleted.
- Register the PIF PropertyChanged event to each PIF when the grid is populated; this ensures that all the PIFs displayed will be refreshed when their properties change.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
Merge pull request #121 from GaborApatiNagy/login_originator_CA-140330

CA-140330: Use originator in session.login_with_password
CA-116005: validation of the SN mask doesn't appear to be working correctly on the last two values of the mask.
-New IPv4 subnet mask validator added.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
CA-138822: Improvements to the Host/Pool Storage tab, following on from the TRIM work

- Make "Reclaim freed space" a CommandButton (will appear as disabled if the command cannot execute)
- Add tooltip to "Reclaim freed space" button to show the reason it is disabled
- Hide "Reclaim freed space" button on old servers
- Allow multiselect
- "Reclaim freed space" button enabled if at least one SR can be trimmed

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
CA-116005: validation of the SN mask doesn't appear to be working correctly on the last two values of the mask.
-Unit tests added for Subnetwork mask validation (31 tests)

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
CA-138293: Added CPU information (number of vCPUs and cores-per-socket) to the VM General tab

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
CA-108379: Hotfix prechecks encourage VMs to be suspended unnecessarily if HA is enabled - Fixed

- Added three Warning classes (HAEnabledWarning, WLBEnabledWarning, HostNotLiveWarning), used in the Pre-checks page of the Install wizard (also in the Rolling Pool Upgrade wizard) to indicate that a check was skipped and the reason why.
- If HA or WLB is on, we show this as an error in the "HA and WLB status" check and the "VM migration status" checks will be skipped (with a warning displayed) for all the hosts in the pool.
- Similarly, if a host if unreachable, we show this as an error in the "Host liveness status" check and the following checks for that host will be skipped (and warning displayed).

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
Merge pull request #124 from GaborApatiNagy/netmask

CA-116005: validation of the SN mask doesn't appear to be working correctly on the last two values of the mask.
CA-137047: StorageXenMotion not offering all hosts in drop down menu
-Fixed Home server's commands to try to use both versions of migration when deciding to enable or disable the menu item

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
 CA-137047: StorageXenMotion not offering all hosts in drop down menu
Some changes after code review

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
CA-137047: StorageXenMotion not offering all hosts in drop down menu
+1 change after code review

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
Merge pull request #128 from GaborApatiNagy/xs64bit-fixed-CA-137047

CA-137047: StorageXenMotion not offering all hosts in drop down menu
CA-137306: Missing resources
-Added friendly names for RRDd logs

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
Merge pull request #119 from MihaelaStoica/CA-139888

CA-139888: Changing window size should not change the number of items mi...
Merge pull request #122 from MihaelaStoica/CA-118423

CA-118423: Fix the issue where a non-management bond was shown as discon...
Merge pull request #123 from MihaelaStoica/CA-138822

CA-138822: Improvements to the Host/Pool Storage tab, following on from ...