xenadmin/XenAdmin/Commands
Konstantina Chremmou 90589a30c9 Modified treeview and toolbar updates (#2264)
This PR is aimimg to (1) fix a regression introduced by #2223 whereby the toolbar items did not have the correct state on first launch; (2) improve performance by removing some updates which I believe are not needed.

* Removed some duplicate calls to RefershTreeView and UpdateToolbars because
they are called within the action's Complete event handler.
Also, normalise the way the treeview refresh is requested by the various actions the
commands are launching.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>

* Removed some explicit calls to refresh the treeview since this is done by
the connection result handlers.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>

* The toolbars and tabs should be updated every time the treeview is refreshed.

This should happen when the refresh event is handled rather than calling
UpdateToolbars explicitly after a treeview refresh is requested; also, it is
the treeview refreshes that should be throttled and not the toolbar and
tab updates (the throttling mechanism may need correction).
Also, removed unnecessary Invoke as we are already on the UI thread.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>

* Simplified UpdateManager.Update event declaration.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-10-16 16:24:54 +01:00
..
Controls CA-286291: Add the additional menu items immediately after the first item, so we don't have to wait for the WLB recommendations to be 2018-05-14 12:30:40 +01:00
ActivateVBDCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
AddHostCommand.cs Connection code simplification/update: removed CachePopulatedEventArgs class and use the newer Action delegate instead. 2018-01-24 15:58:16 +00:00
AddHostToPoolCommand.cs CA-273307: Replaced the links in the Upsell dialogs 2017-11-17 12:24:43 +00:00
AddNewHostToPoolCommand.cs Connection code simplification/update: removed CachePopulatedEventArgs class and use the newer Action delegate instead. 2018-01-24 15:58:16 +00:00
AddVirtualDiskCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ApplyLicenseEditionCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
AttachVirtualDiskCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
BackupHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
BaseVIFCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
BugToolCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
CallHomeCommand.cs CA-176169: Added copyright statement to files which it was missing from 2017-01-16 20:14:56 +00:00
CancelHostConnectionCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ChangeControlDomainMemoryCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ChangeHostPasswordCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
CollapseChildTreeNodesCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
Command.cs Cleared some level 4 warnings. 2018-03-22 15:07:32 +00:00
ConnectAllHostsCommand.cs Modified treeview and toolbar updates (#2264) 2018-10-16 16:24:54 +01:00
ConvertVMToTemplateCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
CopyTemplateCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
CopyVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
CreateVIFCommand.cs The Proxy_xxx classes should not be used outside the API bindings (in reality 2017-09-14 11:52:15 +01:00
CreateVMFromTemplateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
CrossConnectionCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
CrossPoolCopyVMCommand.cs CA-271970: Incorrect error when copying a VM on an unlicensed pool 2017-11-13 11:28:00 +00:00
CrossPoolMigrateCommand.cs CA-273307: Replaced the links in the Upsell dialogs 2017-11-17 12:24:43 +00:00
CrossPoolMigrateToHomeCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
CrossPoolMoveVMCommand.cs CA-249858: Fix build warning as error 2017-06-15 08:31:47 +01:00
DeactivateVBDCommand.cs Converted remaining extension get and set properties of the API classes to methods 2017-09-05 02:15:38 +01:00
DeleteFolderCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DeletePoolCommand.cs CA-104539: Don't allow the user to make a pool into a standalone server if HA is enabled 2018-08-10 09:50:31 +01:00
DeleteSnapshotCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DeleteTagCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DeleteTemplateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DeleteVirtualDiskCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DeleteVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DeleteVMsAndTemplatesCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DestroyBondCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DestroyHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DestroySRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DetachSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DetachVirtualDiskCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisableChangedBlockTrackingCommand.cs Rename resource string which causes Messages.resx to become unsorted 2018-01-11 12:45:37 +00:00
DisablePvsReadCachingCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DisasterRecoveryCommand.cs CA-273307: Replaced the links in the Upsell dialogs 2017-11-17 12:24:43 +00:00
DisconnectAllHostsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisconnectCommand.cs When we end the connection call OnConnectionClosed instead of OnConnectionStateChanged. 2018-10-08 11:10:44 +01:00
DisconnectHostCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisconnectHostsAndPoolsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisconnectPoolCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisconnectWlbServerCommand.cs Modified treeview and toolbar updates (#2264) 2018-10-16 16:24:54 +01:00
DragDropAddHostToPoolCommand.cs CA-268975: Do not allow multiple hosts to join the pool if the new pool size will exceed the max size 2017-10-13 10:14:00 +01:00
DragDropCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DragDropCrossPoolMoveHaltedVMCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DragDropIntoFolderCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DragDropMigrateVMCommand.cs CA-270505: Use generic msg if VM migr not allowed 2017-10-24 15:08:35 +01:00
DragDropRemoveHostFromPoolCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DragDropTagCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DRConfigureCommand.cs CA-273307: Replaced the links in the Upsell dialogs 2017-11-17 12:24:43 +00:00
DRDryrunCommand.cs CA-273307: Replaced the links in the Upsell dialogs 2017-11-17 12:24:43 +00:00
DRFailbackCommand.cs CA-273307: Replaced the links in the Upsell dialogs 2017-11-17 12:24:43 +00:00
DRFailoverCommand.cs CA-273307: Replaced the links in the Upsell dialogs 2017-11-17 12:24:43 +00:00
EditTagsCommand.cs CA-287643: Replaced list view with data grid view to resolve column sizing issue and for consistency with the rest of the product. (#2226) 2018-10-02 10:18:34 +01:00
EnablePvsReadCachingCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ExpandTreeNodesCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ExportCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ExportResourceReportCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ExportSnapshotAsTemplateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ExportTemplateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ExportVMCommand.cs Namespace tidy 3/several: replaced XenAdmin.Core (instances in XenCenterLib) with XenCenterLib. 2017-11-30 13:56:32 +00:00
ForceVMRebootCommand.cs Corrected the title and description of VM lifecycle operations when run as Mulltiple/Parallel actions 2018-08-13 17:18:53 +01:00
ForceVMShutDownCommand.cs Corrected the title and description of VM lifecycle operations when run as Mulltiple/Parallel actions 2018-08-13 17:18:53 +01:00
ForgetSavedPasswordCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ForgetSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
HACommand.cs CA-273307: Replaced the links in the Upsell dialogs 2017-11-17 12:24:43 +00:00
HostMaintenanceModeCommand.cs Modified treeview and toolbar updates (#2264) 2018-10-16 16:24:54 +01:00
HostPasswordCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
HostReconnectAsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ImPortCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ImportSearchCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
InstallNewUpdateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
InstallToolsCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
InstantVMFromTemplateCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
MigrateVirtualDiskCommand.cs Separated the MoveVirtualDiskDialog from the MigrateVirtualDiskDialog so it 2018-10-08 12:33:04 +01:00
MoveVirtualDiskCommand.cs Separated the MoveVirtualDiskDialog from the MigrateVirtualDiskDialog so it 2018-10-08 12:33:04 +01:00
MoveVMCommand.cs CA-289948: Do not show the upsell dialog if migration is not permitted due to licensing restrictions; launch the move VM dialog instead. 2018-05-18 16:37:12 +01:00
NewFolderCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NewPoolCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NewSRCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NewTemplateFromSnapshotCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
NewVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
NewVMFromSnapshotCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NewVMFromTemplateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
PauseDockerContainerCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
PoolReconnectAsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
PowerOnHostCommand.cs Modified treeview and toolbar updates (#2264) 2018-10-16 16:24:54 +01:00
PropertiesCommands.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
PutFolderIntoRenameModeCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
PutTagIntoRenameModeCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ReattachSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RebootCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RebootHostCommand.cs Modified treeview and toolbar updates (#2264) 2018-10-16 16:24:54 +01:00
RebootVMCommand.cs Corrected the title and description of VM lifecycle operations when run as Mulltiple/Parallel actions 2018-08-13 17:18:53 +01:00
ReconnectHostCommand.cs Modified treeview and toolbar updates (#2264) 2018-10-16 16:24:54 +01:00
RemoveFromFolderCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RemoveHostCommand.cs Modified treeview and toolbar updates (#2264) 2018-10-16 16:24:54 +01:00
RemoveHostCrashDumpsCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RemoveHostFromPoolCommand.cs Modified treeview and toolbar updates (#2264) 2018-10-16 16:24:54 +01:00
RenameFolderCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RenameTagCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RepairSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RescanPIFsCommand.cs Cleared some level 4 warnings. 2018-03-22 15:07:32 +00:00
RestartDockerContainerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RestartToolstackCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RestoreHostFromBackupCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ResumeDockerContainerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ResumeVMCommand.cs Corrected the title and description of VM lifecycle operations when run as Mulltiple/Parallel actions 2018-08-13 17:18:53 +01:00
RevertToSnapshotCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RollingUpgradeCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
SaveSessionCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
SelectedItem.cs Cleared some level 4 warnings. 2018-03-22 15:07:32 +00:00
SelectedItemCollection.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
SelectionBroadcaster.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
SelectionManager.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
SetAsDefaultSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ShutDownCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ShutDownHostCommand.cs Modified treeview and toolbar updates (#2264) 2018-10-16 16:24:54 +01:00
ShutDownVMCommand.cs Corrected the title and description of VM lifecycle operations when run as Mulltiple/Parallel actions 2018-08-13 17:18:53 +01:00
StartDockerContainerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
StartVMCommand.cs Corrected the title and description of VM lifecycle operations when run as Mulltiple/Parallel actions 2018-08-13 17:18:53 +01:00
StopDockerContainerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
SuspendVMCommand.cs Corrected the title and description of VM lifecycle operations when run as Mulltiple/Parallel actions 2018-08-13 17:18:53 +01:00
TakeSnapshotCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
TrimSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
UntagCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
UpdateVIFCommand.cs The Proxy_xxx classes should not be used outside the API bindings (in reality 2017-09-14 11:52:15 +01:00
VappShutDownCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
VappStartCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ViewWorkloadReportsCommand.cs CA-273307: Replaced the links in the Upsell dialogs 2017-11-17 12:24:43 +00:00
VirtualDiskCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
VMGroupCommand.cs CA-242134: Remove the VMPP code 2017-05-25 15:37:05 +01:00
VMLifeCycleCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
VMOperationCommand.cs Corrected the title and description of VM lifecycle operations when run as Mulltiple/Parallel actions 2018-08-13 17:18:53 +01:00
VMOperationHomeServerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
VMOperationHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
VMOperationWlbHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
VMOperationWlbOptimalServerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
VMRecoveryModeCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00