示例#1
0
        /// <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);
            }
        }
示例#2
0
 /// <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);
     }
 }
示例#3
0
 /// <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);
     }
 }