private void 修改ToolStripMenuItem_Click(object sender, EventArgs e) { NewSql sqlForm = new NewSql((SQLRecord)dataGridViewX1.SelectedRows[0].Tag); sqlForm.ShowDialog(); SetForm(); }
/// <summary> /// 新增一個SQL記錄 /// </summary> private void btnNewSql_Click(object sender, EventArgs e) { NewSql sqlForm = new NewSql(); sqlForm.ShowDialog(); SetForm(); }
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(); }