Esempio n. 1
0
        private void Button(object sender, RoutedEventArgs e)
        {
            Window window;

            if (button2.IsFocused)
            {
                window = new second();
                window.Show();
            }
            else if (button3.IsFocused)
            {
                window = new three();
                window.Show();
            }
            else if (button1.IsFocused)
            {
                window = new MainWindow();
                window.Show();
            }
            else if (button5.IsFocused)
            {
                window = new five();
                window.Show();
            }
            else if (button6.IsFocused)
            {
                window = new six();
                window.Show();
            }
        }
Esempio n. 2
0
        private void Button(object sender, RoutedEventArgs e)
        {
            Window window;

            this.Timer.Stop();
            this.sec   = 0;
            time1.Text = "- : - : -";
            if (button2.IsFocused)
            {
                window = new second();
                window.Show();
            }
            else if (button3.IsFocused)
            {
                window = new three();
                window.Show();
            }
            else if (button1.IsFocused)
            {
                window = new MainWindow();
                window.Show();
            }
            else if (button4.IsFocused)
            {
                window = new four();
                window.Show();
            }
            else if (button6.IsFocused)
            {
                window = new six();
                window.Show();
            }
        }