Пример #1
0
 public Block()
 {
     foreach (Window window in Application.Current.Windows)
     {
         if (window.GetType() == typeof(Window1))
         {
             view = ((Window1)window);
         }
     }
 }
Пример #2
0
 public Block()
 {
     foreach (Window window in Application.Current.Windows)
     {
         if (window.GetType() == typeof(Window1))
         {
             view = ((Window1)window);
         }
     }
     state = new StateMoving();
     //Request();
 }