Пример #1
0
        private void exitButton_Click(object sender, RoutedEventArgs e)
        {
            CheckLoginWindow option = new CheckLoginWindow(formateur);

            option.Owner = this;
            if (option.ShowDialog() == true)
            {
                this.Close();
            }
        }
Пример #2
0
        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();
                }
            }
        }