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