public void EditAppt(int clinicId, Appointment appointment) { MarkStartedAndPullForwardForm mark = new MarkStartedAndPullForwardForm(appointment.apptID, appointment.unitnum); mark.ShowDialog(); User.setClinicID(clinicId); AddAppointmentView view = new AddAppointmentView(appointment, clinicId, AddAppointmentView.Mode.Edit); view.ShowDialog(); SessionManager.Instance.ClearActivePatient(); }
public void CopyAppt(int clinicId, Appointment toCopy) { User.setClinicID(clinicId); Appointment copiedFromExisting = new Appointment(toCopy, clinicId); MarkStartedAndPullForwardForm mark = new MarkStartedAndPullForwardForm(copiedFromExisting.apptID, copiedFromExisting.unitnum); mark.ShowDialog(); AddAppointmentView view = new AddAppointmentView( copiedFromExisting, clinicId, AddAppointmentView.Mode.Copy); view.ShowDialog(); }