private void butSchedules_Click(object sender, EventArgs e) { if (!Security.IsAuthorized(Permissions.Schedules)) { return; } FormScheduleDayEdit FormSDE = new FormScheduleDayEdit(DateTime.Now, Clinics.ClinicNum); FormSDE.ShowOkSchedule = true; FormSDE.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Schedules, 0, ""); if (FormSDE.GotoScheduleOnClose) { FormSchedule FormS = new FormSchedule(); FormS.ShowDialog(); } }
private void menuItemSched_Click(object sender,EventArgs e) { //anyone should be able to view. Security must be inside schedule window. //if(!Security.IsAuthorized(Permissions.Schedules)) { // return; //} FormSchedule FormS=new FormSchedule(); FormS.ShowDialog(); //SecurityLogs.MakeLogEntry(Permissions.Schedules,0,""); }