Commit Graph

72 Commits

Author SHA1 Message Date
Konstantina Chremmou
abf4ae3f35 CP-36392 pt.1: Removed unused using directives.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2021-04-07 10:04:47 +01:00
Darren Matthews
a8988276be L10n : Resx resync and translation update
Signed-off-by: Darren Matthews <darren.matthews@citrix.com>
2021-03-02 09:44:29 +00:00
Konstantina Chremmou
8a6a579402 CP-20425: Use static images everywhere an image is assigned programmatically.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2020-07-18 07:49:27 +01:00
Konstantina Chremmou
94eeb1ddf3 CA-338829: Check the clicked item is indeed a ToolstripMenuItem.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2020-05-18 23:26:55 +01:00
Konstantina Chremmou
fd497a1370 Added outlook style status labels showing the number of various types of notifications.
The labels are additionally clickable and navigate to the corresponding panel.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2020-04-30 08:30:30 +01:00
Konstantina Chremmou
fc1cbf636e Simplified signature of connection events.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2019-12-06 11:17:46 +00:00
Konstantina Chremmou
fad80c778b Avoid duplicate logging; compact multiple logging calls.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2019-11-13 12:31:44 +00:00
Konstantina Chremmou
6273856761 Prevent VisualStudio's designer from crashing when opening the MainWindow.
Made command parameterless constructors public; made browsable events public;
replaced manually written with auto-generated code.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2019-04-24 15:03:20 +01:00
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
Konstantina Chremmou
b267007bdc Unused code removal; designer tidy up.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-10-08 11:10:44 +01:00
Konstantina Chremmou
194cd18ea3 Do not construct certain members if we are in Visual Studio's designer mode
because they crash the designer.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-10-08 11:10:44 +01:00
Konstantina Chremmou
fb40cb7a5a Hide properties which should not be serialised by the Visual Studio designer.
Minor refactoring.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-10-08 11:10:44 +01:00
Konstantina Chremmou
fa1cf41d5b No need to add nodes to the treeview in the constructor (which also means at design time);
PersistExpandNodes should not take for granted that the treeview always has nodes.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-10-08 11:10:44 +01:00
Konstantina Chremmou
85b326497d CA-293664: Corrected text colour for selected item.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-07-25 09:39:04 +01:00
Konstantina Chremmou
fb8434819d Namespace tidy 3/several: replaced XenAdmin.Core (instances in XenCenterLib) with XenCenterLib.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-11-30 13:56:32 +00:00
Konstantina Chremmou
ad7e2fa6a6 CA-257927: Changed ChangeableList.RemoveAll method to fire the CollectionChangedEvent
once for all the items to be removed, passing in their list as argument. This method,
and the method Clear calling it, are used for alerts, updates, events and connections,
hence changed the handling of the CollectionChanged event in these cases to expect
either a single item or a collection. In the case of alerts, updates and events
this means that we can rebuild the whole list instead of removing single rows which
causes the application to hang for big numbers of items.
2017-07-24 14:48:02 +01:00
Gabor Apati-Nagy
7c0bc50b4a CA-176169: Changed copyright statements to include the comma in Citrix Systems,
Inc.

Signed-off-by: Gabor Apati-Nagy<gabor.apati-nagy@citrix.com>
2017-01-16 19:59:50 +00:00
Mihaela Stoica
6f28a7bfb1 CP-17276: Out of Memory exception when XenCenter exceeds the maximum number of GDI handles
Changed the tree builder so that the tree nodes rely on the TreeView's font. If the nodes have their NodeFont != null, then a tree update causes new fonts to be generated for each node and when fonts are being created faster than they could be cleaned up, we reach the GLI handles limit of 10000 (which causes the Out of Memory exception).

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2016-11-24 16:35:51 +00:00
CITRITE\sriharshak
8c0623b8f2 L10N:Dundee:Translation check-ins 2016-04-20 19:16:33 +05:30
Gabor Apati-Nagy
8cfed69697 CP-11577: CAR-483: Allow drag and drop for stopped and suspended VMs (cross pool)
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-04-20 17:54:16 +01:00
Gabor Apati-Nagy
3696f0a973 Revert "CA-45514: XenCenter looks pretty terrible under different DPI settings"
This reverts commit 17d28304f3.
2015-04-16 15:44:43 +01:00
Gabor Apati-Nagy
aefed11165 Revert "CA-149867: Invoke on MainWindow instead of various controls"
This reverts commit 92f0499911.
2015-04-16 14:17:02 +01:00
Mihaela Stoica
1ea6bd2aa0 Merge pull request #433 from GaborApatiNagy/master_CA-45514_2
CA-45514: XenCenter looks pretty terrible under different DPI settings
2015-04-15 08:55:29 +01:00
Gabor Apati-Nagy
c333c18f24 CA-45514: XenCenter looks pretty terrible under different DPI settings
-Fixing code following the code review

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2015-04-14 19:26:49 +01:00
Gabor Apati-Nagy
17d28304f3 CA-45514: XenCenter looks pretty terrible under different DPI settings
-Fixed the Main Treeview
2015-04-13 11:16:58 +01:00
Gabor Apati-Nagy
92f0499911 CA-149867: Invoke on MainWindow instead of various controls
We observed that some threads can reach deadlock-ish state after they have Invoked into a control's UI thread. When it happens they are all in a waiting for join or in sleep state for very long time, although there should not be any deadlock situations.
It seems this has something to do with multiple parent controls and with which control we invoked on. This should not make a difference, because we have got one UI thread (for MainWindow) they should wait for, but we have seen it does.

The solution that fixed this issue was to invoke on the MainWindow instead of various controls (see a4fe507adf ).

This changeset is changing all our Invokes to invoke into MainWindow
instead of a control itself. (MainWindow's UI thread is the only UI thread
all Control is using in XenCenter)
This changeset should be in place until we have found the root cause or the exact reason for the above.
2015-04-08 15:16:10 +01:00
Gabor Apati-Nagy
8cf0ee6a04 Merge pull request #262 from xenserver/xs64bit
Xs64bit
2014-11-18 10:32:57 +00:00
vetrivelc
62c2065b91 Fixes: CA-150023,150019,149973,149970
Translation updates & L10N Bug Fixes
2014-10-31 18:03:20 +05:30
Gabor Apati-Nagy
6a9dc4278e Merge pull request #248 from vetrivelc/creedence-ln
Iteration_002 translation check-ins
2014-10-14 17:49:31 +01:00
vetrivelc
6e2e1a214d Iteration_002 translation check-ins 2014-10-14 21:41:41 +05:30
Gabor Apati-Nagy
d6b428ec8c Merge pull request #247 from xenserver/xs64bit
Xs64bit
2014-10-10 16:51:44 +01:00
Mihaela Stoica
a4fe507adf CA-147941: Fixed the RPU wizard hang in "Reconnecting Storage" and connecting action stuck in progress state
In some cases calling Control.Invoke() from a background thread causes that thread to go in a "sleep, wait, or join" mode, while waiting for Invoke to happen, although the UI thread is running normally.
If the Control is the MainWindow, it works as expected, but we've seen it happening while connecting or disconnecting from a large pool, on calling Invoke on controls like NavigationView, AlertSummaryPage, HistoryPage, etc.
To fix this, we call the Invoke on the MainWindow in all the places where we've seen the issue.

With this changes, the previous fix for CA-148245 (call RequestRefreshTreeView on CacheClearing event) is not needed anymore, so I removed that call.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2014-10-10 13:16:50 +01:00
Stephen Turner
99743e54ac Just add a comment 2014-10-01 17:51:17 +01:00
Stephen Turner
5abf3c53c0 CA-146815 Search tab does not refresh when moving from Infrastructure view to a Saved Search view (and not reintroducing CA-147684) 2014-10-01 17:43:03 +01:00
Gabor Apati-Nagy
34644d17aa Merge pull request #237 from xenserver/xs64bit
Xs64bit
2014-10-01 17:32:33 +01:00
Stephen Turner
21449b0d2d Also if we're not taking the patch for CA-146815, RefreshTreeView() can stay private 2014-10-01 13:54:02 +01:00
Stephen Turner
d612d07046 If we're not taking the patch for CA-146815, we don't need this patch
for CA-147684 either, because it is caused by that patch.

This reverts commit 71de9ae14a.
2014-10-01 13:35:07 +01:00
Stephen Turner
d039f87d9a Revert change for CA-146815. This change is slightly risky because it changes the order of events, so we will not bundle it up with the other changes but will consider it separately. 2014-09-30 12:50:09 +01:00
Stephen Turner
71de9ae14a CA-147684 Refresh title when switch back from Notifications View 2014-09-30 10:59:26 +01:00
Stephen Turner
25e735223e CA-143826 CA-146815 CA-147401 Fix bugs related to navigation mode changes 2014-09-29 15:13:39 +01:00
vetrivelc
2ab95c7899 CreedenceLN: Updated the language resource files
New translation checki-ns and language file additions
2014-09-18 15:03:24 +05:30
Gabor Apati-Nagy
0d0daa4ddb CA-143826: When in Notifications view, the context should be empty
-I defined save and restore selection functionality in SelectionBroadcaster and implemented them in SelectionManager. The NavigationPanel now uses these to: 1) save the current Selection (context)  when the user switches to the Notification view, 2) to restore previous selection when switching away from the Notifications view.
2014-09-08 18:05:51 +01:00
Mihaela Stoica
c51dc67cb0 CA-139888: Changing window size should not change the number of items minimized in Outlook-style navigation panel
When the navigation panel is resized, we need to preserve the height of the bottom panel, by recalculating the splitter distance.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2014-07-08 12:54:03 +01:00
Gabor Apati-Nagy
ccc1e3ab09 CA-137250: Minimising XC window loses its left bottom window 2014-06-13 12:19:08 +01:00
Stephen Turner
adebc23f71 CP-4961 New icons for CAR-107 2014-06-03 16:49:13 +01:00
Mihaela Stoica
c8917d1986 CA-127974: Added more checks to prevent XenCenter crash while closing [XOP-521]
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2014-03-05 10:45:39 +00:00
Konstantina Chremmou
f5bee7102c Refactored MainWindow to derive from IMainWindow rather than implement a field deriving
from this interface.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2014-01-22 12:39:32 +00:00
Konstantina Chremmou
f120ffd496 CA-123572: Fixed regression: restored "New folder" item in the context menu of the Folders root node.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2013-12-31 15:47:52 +00:00
Konstantina Chremmou
7f29ebf2e9 CA-123573: Clicking a checked navigation button should not uncheck it.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2013-12-31 13:44:35 +00:00
Konstantina Chremmou
72c43dadfc CP-6093: Aesthetic improvements to the red blob on the Notifications button.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2013-11-27 08:42:51 +00:00