private void Button_New_Fire_Clicked(object sender, RoutedEventArgs e) { if (newFireWindow == null) { newFireWindow = new NewFireWindow(); newFireWindow.Closed += newFireWindowClosed; newFireWindow.Show(); } }
private void newFireWindowClosed(object sender, EventArgs e) { newFireWindow = null; }