private void Button_Submit_Click(object sender, RoutedEventArgs e) { if (totalWindow == null) { totalWindow = new TotalWindow(); totalWindow.Closed += TotalWindow_Closed; totalWindow.Show(); } }
private void TotalWindow_Closed(object sender, EventArgs e) { totalWindow = null; }