Exemple #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         B2BUR_GSTR2_ gst = new B2BUR_GSTR2_(master, tabControl);
         master.AddNewTab(gst);
     }
     catch
     {
     }
 }
Exemple #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")
             {
                 B2BUR_GSTR2_ gst = new B2BUR_GSTR2_(master, tabControl);
                 master.AddNewTab(gst);
             }
             else
             {
                 MessageBox.Show("You Don't have Permission For View");
                 return;
             }
         }
     }
     catch
     {
     }
 }