Fixed issue with undeclared variable

This commit is contained in:
David Sparer
2016-08-24 08:47:31 -06:00
parent c98e672a73
commit cf87f2ee4d

View File

@@ -578,9 +578,11 @@ namespace mRemoteNG.Config.Connections
var csvConnectionsSerializer = new CsvConnectionsSerializerMremotengFormat { SaveSecurity = SaveSecurity };
csvConnectionsSerializer.Serialize(ConnectionTreeModel);
}
#region vRD CSV
private void SaveTovRDCSV()
private StreamWriter csvWr;
private void SaveTovRDCSV()
{
if (Runtime.IsConnectionsFileLoaded == false)
{
@@ -588,7 +590,7 @@ namespace mRemoteNG.Config.Connections
}
var tN = (TreeNode)RootTreeNode.Clone();
var tNC = tN.Nodes;
var csvWr = new StreamWriter(ConnectionFileName);
csvWr = new StreamWriter(ConnectionFileName);
SaveNodevRDCSV(tNC);
csvWr.Close();
}