"return ;" annoyed me...

And I did a find and replace in the solution instead of the one file I
was working on... So I'm going with it...
This commit is contained in:
Sean Kaim
2017-01-11 16:56:14 -05:00
parent eec17f10d5
commit e92a76f95b
13 changed files with 34 additions and 34 deletions

View File

@@ -34,7 +34,7 @@ namespace mRemoteNG.App
}
if (exportForm.ShowDialog(frmMain.Default) != DialogResult.OK)
return ;
return;
ConnectionInfo exportTarget;
switch (exportForm.Scope)

View File

@@ -89,7 +89,7 @@ namespace mRemoteNG.Config.Connections
if (!VerifyDatabaseVersion(sqlConnector))
{
Runtime.MessageCollector.AddMessage(MessageClass.ErrorMsg, Language.strErrorConnectionListSaveFailed);
return ;
return;
}
var rootTreeNode = Runtime.ConnectionTreeModel.RootNodes.OfType<RootNodeInfo>().First();

View File

@@ -130,7 +130,7 @@ namespace mRemoteNG.Config.Putty
if (_eventWatcher != null)
{
return ;
return;
}
try
@@ -158,7 +158,7 @@ namespace mRemoteNG.Config.Putty
if (_eventWatcher == null)
{
return ;
return;
}
_eventWatcher.EnableRaisingEvents = false;
_eventWatcher.Dispose();
@@ -231,7 +231,7 @@ namespace mRemoteNG.Config.Putty
{
if (!File.Exists(_puttyConfFile))
{
return ;
return;
}
using (var streamReader = new StreamReader(_puttyConfFile))
{
@@ -299,7 +299,7 @@ namespace mRemoteNG.Config.Putty
{
if (!File.Exists(_sessionFile))
{
return ;
return;
}
using (var streamReader = new StreamReader(_sessionFile))
{

View File

@@ -172,7 +172,7 @@ namespace mRemoteNG.Connection.Protocol.Http
WebBrowser objWebBrowser = wBrowser as WebBrowser;
if (objWebBrowser == null)
{
return ;
return;
}
// This can only be set once the WebBrowser control is shown, it will throw a COM exception otherwise.

View File

@@ -137,7 +137,7 @@ namespace mRemoteNG.Connection.Protocol.ICA
{
if (((int)Force & (int)ConnectionInfo.Force.NoCredentials) == (int)ConnectionInfo.Force.NoCredentials)
{
return ;
return;
}
string _user = _Info.Username;

View File

@@ -75,7 +75,7 @@ namespace mRemoteNG.Connection
var puttyProcess = new PuttyProcessController();
if (!puttyProcess.Start())
{
return ;
return;
}
if (puttyProcess.SelectListBoxItem(PuttySession))
{

View File

@@ -117,7 +117,7 @@ namespace mRemoteNG.Themes
{
if (_name == value)
{
return ;
return;
}
_name = value;
NotifyPropertyChanged("Name");
@@ -135,7 +135,7 @@ namespace mRemoteNG.Themes
{
if (_windowBackgroundColor == value)
{
return ;
return;
}
_windowBackgroundColor = value;
NotifyPropertyChanged("WindowBackgroundColor");
@@ -152,7 +152,7 @@ namespace mRemoteNG.Themes
{
if (_menuBackgroundColor == value)
{
return ;
return;
}
_menuBackgroundColor = value;
NotifyPropertyChanged("MenuBackgroundColor");
@@ -169,7 +169,7 @@ namespace mRemoteNG.Themes
{
if (_menuTextColor == value)
{
return ;
return;
}
_menuTextColor = value;
NotifyPropertyChanged("MenuTextColor");
@@ -187,7 +187,7 @@ namespace mRemoteNG.Themes
{
if (_toolbarBackgroundColor == value || value.A < 255)
{
return ;
return;
}
_toolbarBackgroundColor = value;
NotifyPropertyChanged("ToolbarBackgroundColor");
@@ -204,7 +204,7 @@ namespace mRemoteNG.Themes
{
if (_toolbarTextColor == value)
{
return ;
return;
}
_toolbarTextColor = value;
NotifyPropertyChanged("ToolbarTextColor");
@@ -223,7 +223,7 @@ namespace mRemoteNG.Themes
{
if (_connectionsPanelBackgroundColor == value || value.A < 255)
{
return ;
return;
}
_connectionsPanelBackgroundColor = value;
NotifyPropertyChanged("ConnectionsPanelBackgroundColor");
@@ -240,7 +240,7 @@ namespace mRemoteNG.Themes
{
if (_connectionsPanelTextColor == value)
{
return ;
return;
}
_connectionsPanelTextColor = value;
NotifyPropertyChanged("ConnectionsPanelTextColor");
@@ -260,7 +260,7 @@ namespace mRemoteNG.Themes
{
if (_connectionsPanelTreeLineColor == value)
{
return ;
return;
}
_connectionsPanelTreeLineColor = value;
NotifyPropertyChanged("ConnectionsPanelTreeLineColor");
@@ -280,7 +280,7 @@ namespace mRemoteNG.Themes
{
if (_searchBoxBackgroundColor == value || value.A < 255)
{
return ;
return;
}
_searchBoxBackgroundColor = value;
NotifyPropertyChanged("SearchBoxBackgroundColor");
@@ -300,7 +300,7 @@ namespace mRemoteNG.Themes
{
if (_searchBoxTextPromptColor == value)
{
return ;
return;
}
_searchBoxTextPromptColor = value;
NotifyPropertyChanged("SearchBoxTextPromptColor");
@@ -320,7 +320,7 @@ namespace mRemoteNG.Themes
{
if (_searchBoxTextColor == value)
{
return ;
return;
}
_searchBoxTextColor = value;
NotifyPropertyChanged("SearchBoxTextColor");
@@ -342,7 +342,7 @@ namespace mRemoteNG.Themes
{
if (_configPanelBackgroundColor == value || value.A < 255)
{
return ;
return;
}
_configPanelBackgroundColor = value;
NotifyPropertyChanged("ConfigPanelBackgroundColor");
@@ -362,7 +362,7 @@ namespace mRemoteNG.Themes
{
if (_configPanelTextColor == value)
{
return ;
return;
}
_configPanelTextColor = value;
NotifyPropertyChanged("ConfigPanelTextColor");
@@ -382,7 +382,7 @@ namespace mRemoteNG.Themes
{
if (_configPanelCategoryTextColor == value)
{
return ;
return;
}
_configPanelCategoryTextColor = value;
NotifyPropertyChanged("ConfigPanelCategoryTextColor");
@@ -402,7 +402,7 @@ namespace mRemoteNG.Themes
{
if (_configPanelHelpBackgroundColor == value || value.A < 255)
{
return ;
return;
}
_configPanelHelpBackgroundColor = value;
NotifyPropertyChanged("ConfigPanelHelpBackgroundColor");
@@ -422,7 +422,7 @@ namespace mRemoteNG.Themes
{
if (_configPanelHelpTextColor == value)
{
return ;
return;
}
_configPanelHelpTextColor = value;
NotifyPropertyChanged("ConfigPanelHelpTextColor");
@@ -442,7 +442,7 @@ namespace mRemoteNG.Themes
{
if (_configPanelGridLineColor == value)
{
return ;
return;
}
_configPanelGridLineColor = value;
NotifyPropertyChanged("ConfigPanelGridLineColor");

View File

@@ -81,7 +81,7 @@ namespace mRemoteNG.Themes
{
if (e.PropertyName == "Name")
{
return ;
return;
}
ThemeChangedEvent?.Invoke();
}

View File

@@ -244,7 +244,7 @@ namespace mRemoteNG.Tools
{
if (_value == value)
{
return ;
return;
}
if (!_value)
{

View File

@@ -83,7 +83,7 @@ namespace mRemoteNG.Tools
public void WaitForExit()
{
if (Process == null || Process.HasExited)
return ;
return;
Process.WaitForExit();
}
#endregion

View File

@@ -22,7 +22,7 @@ namespace mRemoteNG.UI.Controls
{
if (e.CloseReason != ToolStripDropDownCloseReason.AppClicked)
{
return ;
return;
}
Rectangle dropDownButtonBoundsClient = DropDownButtonBounds; // Relative to the ToolStripSplitButton

View File

@@ -205,7 +205,7 @@ namespace mRemoteNG.UI.Forms
SelectFileTypeBasedOnSaveFormat(saveFileDialog);
if (saveFileDialog.ShowDialog(this) != DialogResult.OK)
return ;
return;
txtFileName.Text = saveFileDialog.FileName;
}

View File

@@ -211,7 +211,7 @@ namespace mRemoteNG.UI.Window
if (InvokeRequired)
{
Invoke(new PortScannerHostScannedDelegate(PortScanner_HostScanned), new object[] {host, scannedCount, totalCount});
return ;
return;
}
Runtime.MessageCollector.AddMessage(MessageClass.InformationMsg, "Host scanned " + host.HostIp, true);
@@ -233,7 +233,7 @@ namespace mRemoteNG.UI.Window
if (InvokeRequired)
{
Invoke(new PortScannerScanComplete(PortScanner_ScanComplete), new object[] {hosts});
return ;
return;
}
Runtime.MessageCollector.AddMessage(MessageClass.InformationMsg, Language.strPortScanComplete);