Пример #1
0
 public Grant_privs(privs privcs, int inp, string cur_user, string cur_role)
 {
     this.privcs = privcs;
     Cur_user    = cur_user;
     Cur_role    = cur_role;
     flag        = inp;
     InitializeComponent();
 }
Пример #2
0
 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;
 }
Пример #3
0
 private void grv_all_role_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (grv_all_role.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
         {
             grv_all_role.CurrentRow.Selected = true;
             string rolename = grv_all_role.Rows[e.RowIndex].Cells["ROLE"].FormattedValue.ToString();
             privs  frm_priv = new privs(this, rolename, 2);
             frm_priv.ShowDialog();
         }
     }
     catch (Exception)
     {
         return;
     }
 }