public MainWindow()
        {
            mainWindowVM     = Static.Serializer.LoadMap();
            this.DataContext = mainWindowVM;

            InitializeComponent();

            this.KeyDown += MainWindow_KeyDown;
            this.Closing += MainWindow_Closing;
        }
Beispiel #2
0
        public MainWindow()
        {
            mainWindowVM     = new ViewModel.MainWindowVM(Static.Serializer.LoadMap());
            this.DataContext = mainWindowVM;

            InitializeComponent();

            List <Hexagon> l = mainWindowVM.HexagonList;

            l[20].HexNumber = 10000;
            l.Add(new Hexagon(9000, 9000));

            mainWindowVM.HexagonList = l;


            this.KeyDown += MainWindow_KeyDown;
            this.Closing += MainWindow_Closing;
        }