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