Изменил(а) на 'ProjectPlane/ProjectPlane/MapsCollection.cs'
This commit is contained in:
parent
385bd0689c
commit
38a1389ee2
@ -36,7 +36,7 @@ namespace ProjectPlane
|
||||
/// </summary>
|
||||
private readonly char separatorData = ';';
|
||||
|
||||
public MapsCollection(int pictureWidth, int pictureHeight)
|
||||
public MapsCollection(int pictureWidth, int pictureHeight)
|
||||
{
|
||||
_mapStorages = new Dictionary<string, MapWithSetPlanesGeneric<IDrawingObject, AbstractMap>>();
|
||||
_pictureWidth = pictureWidth;
|
||||
@ -58,7 +58,7 @@ namespace ProjectPlane
|
||||
/// <param name="name">Название карты</param>
|
||||
public void DelMap(string name)
|
||||
{
|
||||
if (_mapStorages.ContainsKey(name))
|
||||
if (_mapStorages.ContainsKey(name))
|
||||
_mapStorages.Remove(name);
|
||||
}
|
||||
/// <summary>
|
||||
@ -102,7 +102,7 @@ namespace ProjectPlane
|
||||
);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -145,7 +145,7 @@ namespace ProjectPlane
|
||||
_mapStorages.Add(elem[0], new MapWithSetPlanesGeneric<IDrawingObject, AbstractMap>(_pictureWidth, _pictureHeight, map));
|
||||
_mapStorages[elem[0]].LoadData(elem[2].Split(separatorData, StringSplitOptions.RemoveEmptyEntries));
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user