/// <summary> /// 読込ソースの変更イベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ExcelSourceRadio_CheckedChanged(object sender, EventArgs e) { try { BaseRadioButton radio = (BaseRadioButton)sender; if (!radio.Checked) { return; } ExcelLoadFilePathTitleLbl.Visible = false; ExcelLoadFilePathTextBox.Visible = false; FileOpenButton.Visible = false; if (radio.Equals(ExcelSourceExistsRadio)) { ExcelLoadFilePathTitleLbl.Visible = true; ExcelLoadFilePathTextBox.Visible = true; FileOpenButton.Visible = true; } } catch (Exception ex) { throw Program.ThrowException(ex); } }
/// <summary> /// 待機Radioのチェック後変更イベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void WaitRadio_CheckedChanged(object sender, EventArgs e) { try { BaseRadioButton radio = (BaseRadioButton)sender; if (!radio.Checked) { return; } ExitCodeTitleLbl.Visible = radio.Equals(WaitRadio); ExitCodeUpDown.Visible = radio.Equals(WaitRadio); } catch (Exception ex) { throw Program.ThrowException(ex); } }
/// <summary> /// フォーマットRadioのチェック変更イベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void FormatRadio_CheckedChanged(object sender, EventArgs e) { try { BaseRadioButton radio = (BaseRadioButton)sender; if (!radio.Checked) { return; } CustomInputTitleLbl.Enabled = radio.Equals(FormatCustomRadio); CustomInputTextBox.Enabled = radio.Equals(FormatCustomRadio); if (!CustomInputTextBox.Enabled) { CustomInputTextBox.Text = ""; } } catch (Exception ex) { throw Program.ThrowException(ex); } }