private void metroTile1_Click(object sender, EventArgs e) { CashBook obj2 = new CashBook(); this.Close(); AddReciept obj = new AddReciept(obj2); obj.Show(); }
private void metroButton1_Click(object sender, EventArgs e) { if (userRolesObj.getCheckstate("AddEditReciept") == true) { AddReciept addRecObj = new AddReciept(this); addRecObj.Show(); } else { MessageBox.Show("you don't have permission to enter here, Contact admin For further Details"); return; } }