This commit is contained in:
AnnaLioness 2023-12-01 15:29:39 +04:00
parent d0e1ba4024
commit cb0236f1c6

View File

@ -190,28 +190,6 @@ public bool SaveData(string filename)
}
return true;
}
public bool SaveDop(string filename, string key)
{
if (File.Exists(filename))
{
File.Delete(filename);
}
StringBuilder data = new StringBuilder();
ShipGenericCollection<DrawingShip, DrawningObjectShip> record = _shipStorages[key];
if (!_shipStorages.ContainsKey(key))
{
return false;
}
if(record != null)
{
using (StreamWriter sr = new StreamWriter(filename))
{
sr.Write(filename + " ");
sr.WriteLine(record);
return true;
}
}
return false;
}
}
}