/// <summary> /// Set content. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void SetContent_Clicked(object sender, EventArgs e) { Parent.Sensitive = false; SetWindow _window = new SetWindow(this, null); _window.Closed += delegate { Parent.Sensitive = true; }; _window.Show(); }
public MainWindow() { SetWindow.SetCustomWindow(this); InitializeComponent(); this.Loaded += (sender, e) => { this.DataContext = vm; SetWindow.DragWindow(this); }; }
private void SetConfig() { SetWindow setWindow = new SetWindow(); setWindow.ShowDialog(); }