示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         GST_Register_Bill_Wise1 gst = new GST_Register_Bill_Wise1(master, tabControl);
         master.AddNewTab(gst);
     }
     catch
     {
     }
 }
示例#2
0
 private void button1_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")
             {
                 GST_Register_Bill_Wise1 gst = new GST_Register_Bill_Wise1(master, tabControl);
                 master.AddNewTab(gst);
             }
             else
             {
                 MessageBox.Show("You Don't Have Permission to View");
                 return;
             }
         }
     }
     catch
     {
     }
 }