xenadmin/XenAdmin/Controls/MainWindowControls
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
..
INavigationItem.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NavigationButton.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NavigationDropDownButton.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NavigationPane.cs Unused code removal; designer tidy up. 2018-10-08 11:10:44 +01:00
NavigationPane.Designer.cs Hide properties which should not be serialised by the Visual Studio designer. 2018-10-08 11:10:44 +01:00
NavigationPane.ja.resx L10N:Dundee:Translation check-ins 2016-04-20 19:16:33 +05:30
NavigationPane.resx Revert "CA-45514: XenCenter looks pretty terrible under different DPI settings" 2015-04-16 15:44:43 +01:00
NavigationPane.zh-CN.resx L10N:Dundee:Translation check-ins 2016-04-20 19:16:33 +05:30
NavigationToolStrip.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NavigationToolStripRenderer.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NavigationView.cs Modified treeview and toolbar updates (#2264) 2018-10-16 16:24:54 +01:00
NavigationView.Designer.cs Revert "CA-45514: XenCenter looks pretty terrible under different DPI settings" 2015-04-16 15:44:43 +01:00
NavigationView.ja.resx L10N:Dundee:Translation check-ins 2016-04-20 19:16:33 +05:30
NavigationView.resx Revert "CA-45514: XenCenter looks pretty terrible under different DPI settings" 2015-04-16 15:44:43 +01:00
NavigationView.zh-CN.resx L10N:Dundee:Translation check-ins 2016-04-20 19:16:33 +05:30
NotificationsView.cs CA-293664: Corrected text colour for selected item. 2018-07-25 09:39:04 +01:00