private void exitButton_Click(object sender, RoutedEventArgs e) { CheckLoginWindow option = new CheckLoginWindow(formateur); option.Owner = this; if (option.ShowDialog() == true) { this.Close(); } }
private void exitButton_Click(object sender, RoutedEventArgs e) { CheckLoginWindow option = new CheckLoginWindow(formateur); option.Owner = this; if (option.ShowDialog() == true) { //port.Write("STOP"); this.Close(); Start = false; if (port != null) { port.Close(); } } }