//loads eventcoordinator private void AddEventScreen_Load(object sender, EventArgs e) { eCoord = FileUtilities.loadFromFilesCoordinator(); dateTimePick.CustomFormat = "yyyy/M/d H:m"; dateTimePick.MinDate = DateTime.Now; dateTimePick.ToString(); }
private void MainMenuScreen_Load(object sender, EventArgs e) { eventMan = FileUtilities.loadFromFileEvent(); custMan = FileUtilities.loadFromFileCustomer(); resMan = FileUtilities.loadFromFileReservation(); eventCoord = new EventCoordinator(custMan, eventMan, resMan); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); EventCoordinator eventCoord = FileUtilities.loadFromFilesCoordinator(); Application.Run(new WelcomeScreen()); }
//event coordinator is created by taking already created managers public static EventCoordinator loadFromFilesCoordinator() { CustomerManager custMan = FileUtilities.loadFromFileCustomer(); EventManager eventMan = FileUtilities.loadFromFileEvent(); ReservationManager resMan = FileUtilities.loadFromFileReservation(); EventCoordinator eventCoord = new EventCoordinator(custMan, eventMan, resMan); return(eventCoord); }
private void ViewAllEventsScreen_Load(object sender, EventArgs e) { eCoord = FileUtilities.loadFromFilesCoordinator(); for (int i = 0; i < eCoord.getNumEvents(); i++) { txtViewAllEvents.Text = eCoord.eventList(); } }
private void RSVPForEventScreen_Load(object sender, EventArgs e) { eventCoord = FileUtilities.loadFromFilesCoordinator(); txtCustList.Text = eventCoord.customerList(); txtEventList.Text = eventCoord.eventList(); lblSuccessMsg.Text = ""; }
private void ViewSpecCustomerScreen_Load(object sender, EventArgs e) { eCoord = FileUtilities.loadFromFilesCoordinator(); lblErrorMsg.Text = ""; lblId.Text = ""; lblFName.Text = ""; lblLastName.Text = ""; lblPhone.Text = ""; lblBookings.Text = ""; }
private void ViewSpecEventScreen_Load(object sender, EventArgs e) { eCoord = FileUtilities.loadFromFilesCoordinator(); lblEventId.Text = ""; lblEventName.Text = ""; lblEventVenue.Text = ""; lblEventDate.Text = ""; lblRegAttend.Text = ""; lblAvailSpace.Text = ""; txtAttendList.Text = ""; lblSuccessMsg.Text = ""; }
private void ViewAllCustomersScreen_Load(object sender, EventArgs e) { eventCoord = FileUtilities.loadFromFilesCoordinator(); Customer[] customerListSorted = eventCoord.getSortedCustManArr(); int numAccounts = eventCoord.getNumCustomers(); for (int i = 0; i < numAccounts; i++) { txtViewAllCustomers.Text += customerListSorted[i].ToString(); txtViewAllCustomers.AppendText("\r\n"); } /* * for (int i = 0; i < numAccounts; i++) * { * txtViewAllCustomers.Text += eventCoord.getCustomerAtPosition(i).ToString(); * txtViewAllCustomers.AppendText("\r\n"); * }*/ }
//event coordinator saves all info by writing info to files public static void saveToFileCoordinator(EventCoordinator eCoord) { FileUtilities.writeToFileCustomer(eCoord.GetCustomerManager()); FileUtilities.writeToFileEvent(eCoord.GetEventManager()); FileUtilities.writeToFileReservation(eCoord.GetReservationManager()); }
public CustomerOptionsScreen(EventCoordinator ec) { InitializeComponent(); }
public AddCustomerScreen() { eCoord = FileUtilities.loadFromFilesCoordinator(); InitializeComponent(); }
private void ViewAllRSVPSScreen_Load(object sender, EventArgs e) { eCoord = FileUtilities.loadFromFilesCoordinator(); txtRSVPList.Text += eCoord.reservationList(); }
private void DeleteCustomerScreen_Load(object sender, EventArgs e) { eCoord = FileUtilities.loadFromFilesCoordinator(); }