mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Fixed a number of complier warnings
This commit is contained in:
@@ -66,8 +66,6 @@ namespace mRemoteNG.App
|
||||
|
||||
private static void SaveExportFile(string fileName, ConnectionsSaver.Format saveFormat, TreeNode rootNode, Security.Save saveSecurity)
|
||||
{
|
||||
bool previousTimerEnabled = false;
|
||||
|
||||
try
|
||||
{
|
||||
if (Runtime.SQLConnProvider != null)
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace mRemoteNG.App
|
||||
private static SystemMenu _systemMenu;
|
||||
private static ILog _log;
|
||||
private static bool _isConnectionsFileLoaded;
|
||||
private static System.Timers.Timer _timerSqlWatcher;
|
||||
//private static System.Timers.Timer _timerSqlWatcher;
|
||||
private static SqlConnectionsProvider _sqlConnectionsProvider;
|
||||
private static DateTime _lastSqlUpdate;
|
||||
private static string _lastSelected;
|
||||
@@ -764,8 +764,6 @@ namespace mRemoteNG.App
|
||||
return;
|
||||
}
|
||||
|
||||
bool previousTimerState = false;
|
||||
|
||||
try
|
||||
{
|
||||
if (Update == true && My.Settings.Default.UseSQLServer == false)
|
||||
@@ -822,7 +820,6 @@ namespace mRemoteNG.App
|
||||
|
||||
public static void SaveConnectionsAs()
|
||||
{
|
||||
bool previousTimerState = false;
|
||||
ConnectionsSaver connectionsSave = new ConnectionsSaver();
|
||||
|
||||
try
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using SharedLibraryNG;
|
||||
using mRemoteNG.App;
|
||||
using mRemoteNG.Messages;
|
||||
using SharedLibraryNG;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -87,6 +89,7 @@ namespace mRemoteNG.Config.KeyboardShortcuts
|
||||
}
|
||||
catch (NullReferenceException e)
|
||||
{
|
||||
Runtime.MessageCollector.AddExceptionMessage("Encountered Exception", e);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -92,10 +92,7 @@ namespace mRemoteNG.Container
|
||||
|
||||
public void SetDefaults()
|
||||
{
|
||||
if (this.IsExpanded == null)
|
||||
{
|
||||
this.IsExpanded = true;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -6,9 +6,6 @@ using System.Security.Permissions;
|
||||
using mRemoteNG.App;
|
||||
|
||||
|
||||
[assembly:SecurityPermissionAttribute(SecurityAction.RequestMinimum,UnmanagedCode=true)]
|
||||
[assembly:PermissionSetAttribute(SecurityAction.RequestMinimum,Name="FullTrust")]
|
||||
|
||||
namespace mRemoteNG.Security
|
||||
{
|
||||
public class Impersonator
|
||||
|
||||
@@ -124,7 +124,6 @@ namespace mRemoteNG.UI.Forms.OptionsPages
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
internal System.Windows.Forms.Label Label1;
|
||||
internal System.Windows.Forms.Label lblLanguageRestartRequired;
|
||||
internal System.Windows.Forms.ComboBox cboLanguage;
|
||||
internal System.Windows.Forms.Label lblLanguage;
|
||||
|
||||
Reference in New Issue
Block a user