コード例 #1
0
 //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();
 }
コード例 #2
0
 private void MainMenuScreen_Load(object sender, EventArgs e)
 {
     eventMan   = FileUtilities.loadFromFileEvent();
     custMan    = FileUtilities.loadFromFileCustomer();
     resMan     = FileUtilities.loadFromFileReservation();
     eventCoord = new EventCoordinator(custMan, eventMan, resMan);
 }
コード例 #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            EventCoordinator eventCoord = FileUtilities.loadFromFilesCoordinator();

            Application.Run(new WelcomeScreen());
        }
コード例 #4
0
        //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);
        }
コード例 #5
0
        private void ViewAllEventsScreen_Load(object sender, EventArgs e)
        {
            eCoord = FileUtilities.loadFromFilesCoordinator();

            for (int i = 0; i < eCoord.getNumEvents(); i++)
            {
                txtViewAllEvents.Text = eCoord.eventList();
            }
        }
コード例 #6
0
        private void RSVPForEventScreen_Load(object sender, EventArgs e)
        {
            eventCoord = FileUtilities.loadFromFilesCoordinator();


            txtCustList.Text   = eventCoord.customerList();
            txtEventList.Text  = eventCoord.eventList();
            lblSuccessMsg.Text = "";
        }
コード例 #7
0
        private void ViewSpecCustomerScreen_Load(object sender, EventArgs e)
        {
            eCoord = FileUtilities.loadFromFilesCoordinator();

            lblErrorMsg.Text = "";
            lblId.Text       = "";
            lblFName.Text    = "";
            lblLastName.Text = "";
            lblPhone.Text    = "";
            lblBookings.Text = "";
        }
コード例 #8
0
        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 = "";
        }
コード例 #9
0
        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");
             * }*/
        }
コード例 #10
0
        //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());
        }
コード例 #11
0
 public CustomerOptionsScreen(EventCoordinator ec)
 {
     InitializeComponent();
 }
コード例 #12
0
 public AddCustomerScreen()
 {
     eCoord = FileUtilities.loadFromFilesCoordinator();
     InitializeComponent();
 }
コード例 #13
0
        private void ViewAllRSVPSScreen_Load(object sender, EventArgs e)
        {
            eCoord = FileUtilities.loadFromFilesCoordinator();

            txtRSVPList.Text += eCoord.reservationList();
        }
コード例 #14
0
 private void DeleteCustomerScreen_Load(object sender, EventArgs e)
 {
     eCoord = FileUtilities.loadFromFilesCoordinator();
 }