private void BtnStorage_Click(object sender, EventArgs e) { Hide(); if (user.GetPermit(DataType.Storage)) { CommonMenus.Manage manage = new CommonMenus.Manage(user, DataType.Storage); manage.ShowDialog(); } else { CommonMenus.ModifyDeleteFormulary modifyDeleteFormulary = new CommonMenus.ModifyDeleteFormulary(user, Process.See, DataType.Storage); modifyDeleteFormulary.ShowDialog(); } Show(); }
private void BtnItem_Click(object sender, EventArgs e) { if (user.GetPermit(DataType.Item)) { Hide(); CommonMenus.Manage manage = new CommonMenus.Manage(user, DataType.Item); manage.ShowDialog(); Show(); } else { Hide(); CommonMenus.ModifyDeleteFormulary formulary = new CommonMenus.ModifyDeleteFormulary(user, Process.See, DataType.Item); formulary.ShowDialog(); Show(); } }