void newBinding_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     Map = new MapViewModel(new GameMap(new MapState(new Map(1, new MapSize(10, 10)) { Caption = "Новая карта" })));
 }
        void Open(string fileName)
        {
            if (String.IsNullOrEmpty(fileName)) return;
            CurrentFileName = fileName;

            byte[] data;
            using (var file = File.OpenRead(fileName))
            {
                data = new byte[file.Length];
                file.Read(data, 0, data.Length);
            }
            Map = new MapViewModel(new GameMap(MapSerializer.Instance.DeserializeMapState(data)));
        }
 void closeBinding_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     Map = null;
 }