private void BtnTest2_Click(object sender, RoutedEventArgs e) { this.WindowState = WindowState.Minimized; WinDrawTest2 winDrawTest2 = new WinDrawTest2(); winDrawTest2.Show(); winDrawTest2.Activate(); }
public static WinDrawTest2 getInstance() { if (instance == null) { instance = new WinDrawTest2(); instance.WindowState = WindowState.Maximized; instance.Activate(); } return(instance); }