Exemplo n.º 1
0
 private void StartFromSaveBtn_Click(object sender, RoutedEventArgs e)
 {
     if (SaveIsReal == true)
     {
         StartFromSave           = true;
         AControlModeProcessPage = new ControlModeProcessPage(StartFromSave, IsBetaOn, Name0, Name1, SpellNum0, SpellNum1);
         ((MainWindow)Window.GetWindow(this)).frame0.Content = AControlModeProcessPage;
     }
 }
Exemplo n.º 2
0
        void InputCheck()
        {
            if (NameTxtBx0.Text != "" && NameTxtBx1.Text != "")
            {
                Name0          = NameTxtBx0.Text;
                Name1          = NameTxtBx1.Text;
                InputIsChecked = true;
            }
            else
            {
                InputIsChecked = false;
            }
            if (InputIsChecked == true)
            {
                if (SpellRdBtn00.IsChecked == true)
                {
                    SpellNum0 = 0;
                }
                else if (SpellRdBtn01.IsChecked == true)
                {
                    SpellNum0 = 1;
                }
                else if (SpellRdBtn02.IsChecked == true)
                {
                    SpellNum0 = 2;
                }
                else if (SpellRdBtn03.IsChecked == true)
                {
                    SpellNum0 = 3;
                }
                else if (SpellRdBtn04.IsChecked == true)
                {
                    SpellNum0 = 4;
                }
                else if (SpellRdBtn05.IsChecked == true)
                {
                    SpellNum0 = 5;
                }
                else
                {
                    InputIsChecked = false;
                }
            }

            if (InputIsChecked == true)
            {
                if (SpellRdBtn10.IsChecked == true)
                {
                    SpellNum1 = 0;
                }
                else if (SpellRdBtn11.IsChecked == true)
                {
                    SpellNum1 = 1;
                }
                else if (SpellRdBtn12.IsChecked == true)
                {
                    SpellNum1 = 2;
                }
                else if (SpellRdBtn13.IsChecked == true)
                {
                    SpellNum1 = 3;
                }
                else if (SpellRdBtn14.IsChecked == true)
                {
                    SpellNum1 = 4;
                }
                else if (SpellRdBtn15.IsChecked == true)
                {
                    SpellNum1 = 5;
                }
                else
                {
                    InputIsChecked = false;
                }
            }

            if (InputIsChecked == true)
            {
                AControlModeProcessPage = new ControlModeProcessPage(StartFromSave, IsBetaOn, Name0, Name1, SpellNum0, SpellNum1);
                ((MainWindow)Window.GetWindow(this)).frame0.Content = AControlModeProcessPage;
            }
        }