Tidy up XSVNCScreen: use explicit modifiers

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
Danilo Del Busso 2023-07-11 10:39:40 +01:00
parent 9618c11ba5
commit 559843f549
No known key found for this signature in database

View File

@ -70,7 +70,7 @@ namespace XenAdmin.ConsoleView
private volatile bool _useVNC = true; private volatile bool _useVNC = true;
private bool _autoCaptureKeyboardAndMouse = true; private readonly bool _autoCaptureKeyboardAndMouse = true;
private readonly Color _focusColor = SystemColors.MenuHighlight; private readonly Color _focusColor = SystemColors.MenuHighlight;
@ -173,7 +173,7 @@ namespace XenAdmin.ConsoleView
guestMetrics.PropertyChanged += guestMetrics_PropertyChanged; guestMetrics.PropertyChanged += guestMetrics_PropertyChanged;
} }
void Default_PropertyChanged(object sender, PropertyChangedEventArgs e) private void Default_PropertyChanged(object sender, PropertyChangedEventArgs e)
{ {
if (e.PropertyName == "EnableRDPPolling") if (e.PropertyName == "EnableRDPPolling")
Program.Invoke(this, StartPolling); Program.Invoke(this, StartPolling);
@ -194,7 +194,7 @@ namespace XenAdmin.ConsoleView
} }
void guestMetrics_PropertyChanged(object sender, PropertyChangedEventArgs e) private void guestMetrics_PropertyChanged(object sender, PropertyChangedEventArgs e)
{ {
if (Source == null) if (Source == null)
return; return;
@ -610,7 +610,7 @@ namespace XenAdmin.ConsoleView
} }
} }
void ConnectionSuccess(object sender, EventArgs e) private void ConnectionSuccess(object sender, EventArgs e)
{ {
_connectionRetries = 0; _connectionRetries = 0;
if (AutoSwitchRDPLater) if (AutoSwitchRDPLater)