Esempio n. 1
0
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewSql sqlForm = new NewSql((SQLRecord)dataGridViewX1.SelectedRows[0].Tag);

            sqlForm.ShowDialog();

            SetForm();
        }
Esempio n. 2
0
        /// <summary>
        /// 新增一個SQL記錄
        /// </summary>
        private void btnNewSql_Click(object sender, EventArgs e)
        {
            NewSql sqlForm = new NewSql();

            sqlForm.ShowDialog();

            SetForm();
        }
Esempio n. 3
0
        private void dataGridViewX1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }

            NewSql sqlForm = new NewSql((SQLRecord)dataGridViewX1.Rows[e.RowIndex].Tag);

            sqlForm.ShowDialog();

            SetForm();
        }