Exemple #1
0
 /// <summary>
 /// Resets the form.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ClearAll_Click(object sender, EventArgs e)
 {
     Delg.SetSelectedIndex(Mode, -1);
     Delg.SetValue(Box, 1);
     Delg.SetValue(Slot, 1);
     Delg.SetValue(Eggs, 1);
     Delg.SetValue(Accept, 0);
     Delg.SetValue(Reject, 0);
     Delg.SetChecked(ReadESV, false);
     esvList.Rows.Clear();
     TSVlist.Items.Clear();
     filterList.Rows.Clear();
 }
Exemple #2
0
 private void ResetForm()
 {
     Delg.SetChecked(filterShiny, false);
     Delg.SetSelectedIndex(filterNature, -1);
     Delg.SetSelectedIndex(filterAbility, -1);
     Delg.SetSelectedIndex(filterHPtype, -1);
     Delg.SetSelectedIndex(filterGender, -1);
     Delg.SetSelectedIndex(filterHPlogic, 0);
     Delg.SetSelectedIndex(filterATKlogic, 0);
     Delg.SetSelectedIndex(filterDEFlogic, 0);
     Delg.SetSelectedIndex(filterSPAlogic, 0);
     Delg.SetSelectedIndex(filterSPDlogic, 0);
     Delg.SetSelectedIndex(filterSPElogic, 0);
     Delg.SetSelectedIndex(filterPerIVlogic, 0);
     Delg.SetValue(filterHPvalue, 0);
     Delg.SetValue(filterATKvalue, 0);
     Delg.SetValue(filterDEFvalue, 0);
     Delg.SetValue(filterSPAvalue, 0);
     Delg.SetValue(filterSPDvalue, 0);
     Delg.SetValue(filterSPEvalue, 0);
 }
Exemple #3
0
 private void filterRead_Click(object sender, EventArgs e)
 {
     if (filterList.SelectedRows.Count > 0)
     {
         if ((int)filterList.SelectedRows[0].Cells[0].Value == 1)
         {
             Delg.SetChecked(filterShiny, true);
         }
         else
         {
             Delg.SetChecked(filterShiny, false);
         }
         Delg.SetSelectedIndex(filterNature, (int)filterList.SelectedRows[0].Cells[1].Value);
         Delg.SetSelectedIndex(filterAbility, (int)filterList.SelectedRows[0].Cells[2].Value);
         Delg.SetSelectedIndex(filterHPtype, (int)filterList.SelectedRows[0].Cells[3].Value);
         Delg.SetSelectedIndex(filterGender, (int)filterList.SelectedRows[0].Cells[4].Value);
         Delg.SetValue(filterHPvalue, (int)filterList.SelectedRows[0].Cells[5].Value);
         Delg.SetSelectedIndex(filterHPlogic, (int)filterList.SelectedRows[0].Cells[6].Value);
         Delg.SetValue(filterATKvalue, (int)filterList.SelectedRows[0].Cells[7].Value);
         Delg.SetSelectedIndex(filterATKlogic, (int)filterList.SelectedRows[0].Cells[8].Value);
         Delg.SetValue(filterDEFvalue, (int)filterList.SelectedRows[0].Cells[9].Value);
         Delg.SetSelectedIndex(filterDEFlogic, (int)filterList.SelectedRows[0].Cells[10].Value);
         Delg.SetValue(filterSPAvalue, (int)filterList.SelectedRows[0].Cells[11].Value);
         Delg.SetSelectedIndex(filterSPAlogic, (int)filterList.SelectedRows[0].Cells[12].Value);
         Delg.SetValue(filterSPDvalue, (int)filterList.SelectedRows[0].Cells[13].Value);
         Delg.SetSelectedIndex(filterSPDlogic, (int)filterList.SelectedRows[0].Cells[14].Value);
         Delg.SetValue(filterSPEvalue, (int)filterList.SelectedRows[0].Cells[15].Value);
         Delg.SetSelectedIndex(filterSPElogic, (int)filterList.SelectedRows[0].Cells[16].Value);
         Delg.SetValue(filterPerIVvalue, (int)filterList.SelectedRows[0].Cells[17].Value);
         Delg.SetSelectedIndex(filterPerIVlogic, (int)filterList.SelectedRows[0].Cells[18].Value);
     }
     else
     {
         MessageBox.Show("There is no filter selected.");
     }
 }
Exemple #4
0
 private void ClearAll_Click(object sender, EventArgs e)
 {
     Delg.SetChecked(Resume, false);
     filterList.Rows.Clear();
 }