private void button5_Click(object sender, EventArgs e) { if (AccountManagementDAO.Instance.checkShowForm(getGroupCode(), "fStaff") == true) { fStaff f = new fStaff(); this.Hide(); f.ShowDialog(); this.Show(); } else { MessageBox.Show("Bạn không có quyền truy cập"); } }
public fAddStaff(fStaff f) { InitializeComponent(); loadValue(); fstaff = f; }
public fDeleteStaff(fStaff f = null) { InitializeComponent(); _fstaff = f; loadStaff(); }
public fEditStaff(fStaff f) { InitializeComponent(); _fStaff = f; loadForm(); }