public static MainVM Get() { if (entity == null) { entity = new MainVM(); } return(entity); }
public MainWindow() { InitializeComponent(); vm = MainVM.Get(); cursor = new Cursor(); Initialize_GameField(); towerTops[0] = 0; towerTops[1] = 3; towerTops[2] = 3; ChangeSelection(0, 0); this.KeyDown += new KeyEventHandler(Window_KeyDown); }