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