Exemplo n.º 1
0
        /// <summary>
        /// メソッド(テーブルを選択する)
        /// </summary>
        private void SelectTable()
        {
            var dataGridView = this.dgvTables;

            if (dataGridView.Rows.Count == 0)
            {
                MessageBox.Show(new MessageFetcher().FetchMessage("ERR001"), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            var frmConditionsSetting = new FrmConditionsSetting();

            frmConditionsSetting.TableName = Convert.ToString(dataGridView.Rows[dgvTables.CurrentCell.RowIndex].Cells[COLUMN_INDEX_NAME].Value);
            frmConditionsSetting.Show();
            this.Hide();
            this.Dispose();
        }
        /// <summary>
        /// メソッド(処理を実行する)
        /// </summary>
        private void ExecuteProcess(int executionId)
        {
            switch (executionId)
            {
            case EXECUTION_ID_EXPORT:
                this.ExportFile(this.dgvResults);
                break;

            case EXECUTION_ID_BACK:
                var frmConditionsSetting = new FrmConditionsSetting();
                frmConditionsSetting.TableName = this.TableName;
                frmConditionsSetting.Show();
                this.Hide();
                this.Dispose();
                break;

            case EXECUTION_ID_EXIT:
                this.Close();
                break;
            }
        }