Пример #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         B2Cl b2c = new B2Cl(master, tabControl);
         master.AddNewTab(b2c);
     }
     catch
     {
     }
 }
Пример #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         userrights = conn.getdataset("Select * from UserRights where isactive=1 and uid='" + Master.userid + "'");
         if (userrights.Rows.Count > 0)
         {
             if (userrights.Rows[41]["a"].ToString() == "True")
             {
                 B2Cl b2c = new B2Cl(master, tabControl);
                 master.AddNewTab(b2c);
             }
             else
             {
                 MessageBox.Show("You Don't Have Permission to View");
                 return;
             }
         }
     }
     catch
     {
     }
 }