Ejemplo n.º 1
0
 public static MainVM Get()
 {
     if (entity == null)
     {
         entity = new MainVM();
     }
     return(entity);
 }
Ejemplo n.º 2
0
 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);
 }