예제 #1
0
        private void addEventButtons_Click(object sender, EventArgs e)
        {
            if (editEventButton.Text == "Edit User")
            {
                //UserForm.customerList = Customer.LoadCustomers();

                UserAccountForm UAF = new UserAccountForm();

                UAF.Closed += new EventHandler(RefreshData);

                UAF.Show();
            }
            else
            {
                EventEditForm EEF = new EventEditForm();
                EEF.Closed += new EventHandler(RefreshData);
                EEF.Show();
            }
        }
예제 #2
0
        private void editEventButton_Click(object sender, EventArgs e)
        {
            if (editEventButton.Text == "Edit User")
            {
                UserForm.customerList = Customer.LoadCustomers();
                UserAccountForm UAF = new UserAccountForm(selectedCustomer,true);//dis now work
                UAF.Closed += new EventHandler(RefreshData);

                UAF.Show();
            }
            else
            {
                UserForm.showList = Shows.LoadShows();
                EventEditForm EEF = new EventEditForm(selectedShow);
                EEF.Closed += new EventHandler(RefreshData);

                EEF.Show();
            }
        }