public Block() { foreach (Window window in Application.Current.Windows) { if (window.GetType() == typeof(Window1)) { view = ((Window1)window); } } }
public Block() { foreach (Window window in Application.Current.Windows) { if (window.GetType() == typeof(Window1)) { view = ((Window1)window); } } state = new StateMoving(); //Request(); }