private void userVariableToolStripMenuItem_Click(object sender, EventArgs e) { using (FrmAddEditVariable add = new FrmAddEditVariable(EnvironmentVariableTarget.User)) { add.ShowDialog(); } bindUserVariableTable(); }
private void dgvSystemVariables_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { String variable = dgvSystemVariables.Rows[e.RowIndex].Cells[0].Value as String; String value = dgvSystemVariables.Rows[e.RowIndex].Cells[1].Value as String; using (FrmAddEditVariable edit = new FrmAddEditVariable(EnvironmentVariableTarget.Machine, variable, value)) { edit.ShowDialog(); } bindSystemVariableTable(); }