コード例 #1
0
        private void Button(object sender, RoutedEventArgs e)
        {
            Window window;

            if (button1.IsFocused)
            {
                window = new MainWindow();
            }
            else if (button2.IsFocused)
            {
                window = new second();
            }
            else if (button4.IsFocused)
            {
                window = new four();
            }
            else if (button5.IsFocused)
            {
                window = new five();
            }
            else if (button6.IsFocused)
            {
                window = new six();
            }
            else
            {
                window = null;
            }
            window.Show();
        }
コード例 #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();
            }
        }