/**
         * @brief event for managing the shortcuts
         */
        private void numberTextBox_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.Enter:
                Solve();
                pressedEnter = true;
                break;

            case Key.I:
                HelpWindow settings = new HelpWindow();
                settings.ShowDialog();
                break;

            case Key.C:
                numberTextBox.Clear();
                FocusManager.SetFocusedElement(this, numberTextBox);
                break;
            }
        }
        /**
         * @brief event for opening the Help window
         */
        private void helpButton_Click(object sender, RoutedEventArgs e)
        {
            HelpWindow help = new HelpWindow();

            help.ShowDialog();
        }
        public void Button_Help(object sender, RoutedEventArgs e)
        {
            HelpWindow helpWindow = new HelpWindow();

            helpWindow.ShowDialog();
        }
Exemple #4
0
        private void Button_Click_Help(object sender, RoutedEventArgs e)
        {
            HelpWindow modalHelpWindow = new HelpWindow();

            modalHelpWindow.ShowDialog();
        }