void SetupImageOption() { if (ImageOption.SelectedIndex == 1) { SecondImagePanel.Hide(); YYCHARMODEPAgeUp.Show(); YYCHARMODEPAgeDown.Show(); } else if (ImageOption.SelectedIndex == 2) { YYCHARMODEPAgeUp.Hide(); YYCHARMODEPAgeDown.Hide(); SecondImagePanel.Show(); } else { YYCHARMODEPAgeUp.Hide(); YYCHARMODEPAgeDown.Hide(); SecondImagePanel.Hide(); } if (TSAOption.SelectedIndex == 0) { KeepTSAComboBox.Hide(); } else { KeepTSAComboBox.Show(); } }
private void ImageOption_SelectedIndexChanged(object sender, EventArgs e) { Draw(); if (ImageOption.SelectedIndex == 1) { SecondImagePanel.Hide(); YYCHARMODEPAgeUp.Show(); YYCHARMODEPAgeDown.Show(); } else if (ImageOption.SelectedIndex == 2) { YYCHARMODEPAgeUp.Hide(); YYCHARMODEPAgeDown.Hide(); SecondImagePanel.Show(); } else { YYCHARMODEPAgeUp.Hide(); YYCHARMODEPAgeDown.Hide(); SecondImagePanel.Hide(); } if (TSAOption.SelectedIndex == 0) { KeepTSAComboBox.Hide(); } else { KeepTSAComboBox.Show(); } }