예제 #1
0
        private void ResetFilters(object sender, EventArgs e)
        {
            CHK_Shiny.Checked         = CHK_IsEgg.Checked = true;
            CHK_Shiny.CheckState      = CHK_IsEgg.CheckState = CheckState.Indeterminate;
            MT_ESV.Text               = string.Empty;
            CB_HeldItem.SelectedIndex = 0;
            CB_Species.SelectedIndex  = 0;
            CB_Ability.SelectedIndex  = 0;
            CB_Nature.SelectedIndex   = 0;
            CB_HPType.SelectedIndex   = 0;

            CB_Level.SelectedIndex   = 0;
            TB_Level.Text            = string.Empty;
            CB_EVTrain.SelectedIndex = 0;
            CB_IV.SelectedIndex      = 0;

            CB_Move1.SelectedIndex = CB_Move2.SelectedIndex = CB_Move3.SelectedIndex = CB_Move4.SelectedIndex = 0;

            CB_GameOrigin.SelectedIndex = 0;
            CB_Generation.SelectedIndex = 0;

            MT_ESV.Visible = L_ESV.Visible = false;
            RTB_Instructions.Clear();

            if (sender != null)
            {
                System.Media.SystemSounds.Asterisk.Play();
            }
        }
예제 #2
0
 private void Menu_SearchAdvanced_Click(object sender, EventArgs e)
 {
     if (!Menu_SearchAdvanced.Checked)
     {
         Size = MinimumSize; RTB_Instructions.Clear();
     }
     else
     {
         Size = MaximumSize;
     }
 }
예제 #3
0
        private void ResetFilters(object sender, EventArgs e)
        {
            CB_Species.SelectedIndex = 0;

            CB_Move1.SelectedIndex = CB_Move2.SelectedIndex = CB_Move3.SelectedIndex = CB_Move4.SelectedIndex = 0;

            RTB_Instructions.Clear();

            if (sender != null)
            {
                System.Media.SystemSounds.Asterisk.Play();
            }
        }
예제 #4
0
        private void ResetFilters(object sender, EventArgs e)
        {
            CHK_Shiny.Checked         = CHK_IsEgg.Checked = true;
            CHK_Shiny.CheckState      = CHK_IsEgg.CheckState = CheckState.Indeterminate;
            CB_HeldItem.SelectedIndex = 0;
            CB_Species.SelectedIndex  = 0;

            CB_Move1.SelectedIndex = CB_Move2.SelectedIndex = CB_Move3.SelectedIndex = CB_Move4.SelectedIndex = 0;
            RTB_Instructions.Clear();

            if (sender != this)
            {
                System.Media.SystemSounds.Asterisk.Play();
            }
        }
예제 #5
0
        private void ResetFilters(object sender, EventArgs e)
        {
            CB_Species.SelectedIndex    = 0;
            CB_Move1.SelectedIndex      = CB_Move2.SelectedIndex = CB_Move3.SelectedIndex = CB_Move4.SelectedIndex = 0;
            CB_GameOrigin.SelectedIndex = 0;

            RTB_Instructions.Clear();
            if (sender == null)
            {
                return; // still starting up
            }
            foreach (var chk in TypeFilters.Controls.OfType <CheckBox>())
            {
                chk.Checked = true;
            }

            System.Media.SystemSounds.Asterisk.Play();
        }