public PayAdd(PayList FormAdd) { Connection connect = new Connection(); conn = connect.Connect(); this.Form = FormAdd; InitializeComponent(); }
private void button8_Click(object sender, EventArgs e) { if (this.user[2].ToString() == "เจ้าของกิจการ") { PayList fm = new PayList(); fm.Show(); } else { MessageBox.Show("ขออภัย ท่านไม่ได้รับสิทธิ์สำหรับเมนูนี้"); return; } }