private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e) { try { //SELECT column_name, data_type, data_length FROM USER_TAB_COLUMNS WHERE TABLE_NAME = '' if (e.ColumnIndex == 0) //SELECT { return; } if (e.ColumnIndex == 1) //INSERT { return; } if (e.ColumnIndex == 2) //DELETE { return; } if (e.ColumnIndex == 3) //UPDATE { return; } Grant_privs new_gp = new Grant_privs(privcs, (flag == 1 ? 3 : 4), Cur_user, Cur_role, dataGridView2.Rows[e.RowIndex].Cells["OBJECT_NAME"].Value.ToString()); new_gp.tabControl1.TabPages.Remove(new_gp.tabPage1); new_gp.ShowDialog(); } catch (Exception ex) { return; } }
public Grant_Option(Grant_privs callingForm, int f, String cU, String cR, String q) { query = q; flag = f; Cur_user = cU; Cur_role = cR; this.mainForm = callingForm; InitializeComponent(); }
public grant_revoke_objectPriv(Grant_privs papa, privs papapriv, string query, string curUser, string curRole, int f) { this.papaform = papa; InitializeComponent(); papaformpriv = papapriv; q = query; flag = f; qq = query; cUser = curUser; cRole = curRole; }
private void button3_Click(object sender, EventArgs e) { Grant_privs frm_grantsys = new Grant_privs(this, FLAG, curUser, curRole); frm_grantsys.Show(); }