/// <summary> /// CREATOR: Steve Coonrod, Matt Deaton /// CREATED 2/10/2020 /// APPROVER: Ryan Morganti /// /// Constructor for Creating New Events. (UC-606 and UC-633) /// Must base functionality on user's role. Donation Coordinator(DC) vs all other roles /// Takes in the eventManager interface and user object involved. /// Keeps Edit Mode false /// /// </summary> /// <remarks> /// /// UPDATER: NA /// UPDATED: NA /// UPDATE: NA /// /// </remarks> public CreateEventForm(IPUEventManager eventManager, PetUniverseUser user, EventMgmt eventMgmt) { _eventManager = eventManager; _user = user; _eventMgmt = eventMgmt; InitializeComponent(); }
/// <summary> /// CREATOR: Steve Coonrod, Matt Deaton /// CREATED 2/10/2020 /// APPROVER: Ryan Morganti /// /// Constructor for Editing Events. (UC-607) /// Must base functionality on user's role /// Takes in an existing Event, as well as the eventManager interface and user object involved /// Sets the Edit Mode to true /// /// </summary> /// <remarks> /// /// UPDATER: NA /// UPDATED: NA /// UPDATE: NA /// /// </remarks> public CreateEventForm(IPUEventManager eventManager, PetUniverseUser user, EventMgmt eventMgmt, PUEvent puEvent) { _eventManager = eventManager; _user = user; _event = puEvent; _editMode = true; _eventMgmt = eventMgmt; InitializeComponent(); }
/// <summary> /// /// CREATOR: Steve Coonrod /// CREATED: 2\08\2020 /// APPROVER: Ryan Morganti /// /// This is the full argument constructor which is used for Reviewing an Event (UC-619) /// It will set the approveMode to true when called /// /// </summary> /// <remarks> /// /// UPDATER: NA /// UPDATED: NA /// UPDATE: NA /// /// </remarks> /// <param name="eventManager"></param> /// <param name="user"></param> /// <param name="puEvent"></param> /// <param name="eventMgmt"></param> /// <param name="approveMode"></param> public EventApprovalForm(IPUEventManager eventManager, PetUniverseUser user, PUEvent puEvent, EventMgmt eventMgmt, bool approveMode) { _eventManager = eventManager; _user = user; _event = puEvent; _approveMode = approveMode; _eventMgmt = eventMgmt; _volunteerTaskManager = new VolunteerTaskManager(); InitializeComponent(); }
private bool _approveMode = false; //To track Review vs View Mode /// <summary> /// /// CREATOR: Steve Coonrod /// CREATED: 2\08\2020 /// APPROVER: Ryan Morganti /// /// This is the constructor that will load this page for Viewing an Event's details /// It keeps the approveMode as false /// /// </summary> /// <remarks> /// /// UPDATER: NA /// UPDATED: NA /// UPDATE: NA /// /// </remarks> /// <param name="eventManager"></param> /// <param name="user"></param> /// <param name="puEvent"></param> /// <param name="eventMgmt"></param> public EventApprovalForm(IPUEventManager eventManager, PetUniverseUser user, PUEvent puEvent, EventMgmt eventMgmt) { _eventManager = eventManager; _requestManager = new RequestManager(); _user = user; _event = puEvent; _eventMgmt = eventMgmt; InitializeComponent(); }
/// <summary> /// /// CREATOR: Steve Coonrod /// CREATED: 3\08\2020 /// APPROVER: Ryan Morganti /// /// The constructor for this page. /// Takes as parameters the current Event Manager and EventMgmt page /// /// </summary> /// <remarks> /// /// UPDATER: NA /// UPDATED: NA /// UPDATE: NA /// /// </remarks> /// <param name="eventManager"></param> /// <param name="eventMgmt"></param> public ListApprovedEvents(IPUEventManager eventManager, EventMgmt eventMgmt) { _eventManager = eventManager; _eventMgmt = eventMgmt; InitializeComponent(); }
/// <summary> /// /// CREATOR: Steve Coonrod /// CREATED: 3\08\2020 /// APPROVER: Ryan Morganti /// /// The constructor for this page. /// Takes as parameters the current Event Manager and EventMgmt page /// /// </summary> /// <remarks> /// /// UPDATER: NA /// UPDATED: NA /// UPDATE: NA /// /// </remarks> /// <param name="eventManager"></param> /// <param name="eventMgmt"></param> public ListPendingEvents(IPUEventManager eventManager, EventMgmt eventMgmt) { _eventManager = eventManager; _eventMgmt = eventMgmt; InitializeComponent(); }