private void statsWindow_Closed(object sender, EventArgs e) { statsWindow = null; openRecStats.IsChecked = false; }
private void openRecStats_click(object sender, RoutedEventArgs e) { if (statsWindow == null) { statsWindow = new RecognizerStatsWindow(); statsWindow.Owner = this; statsWindow.Closed += new EventHandler(statsWindow_Closed); statsWindow.Left = this.Left + this.Width; statsWindow.Top = this.Top; statsWindow.Show(); } else statsWindow.Close(); }