예제 #1
0
파일: Home.cs 프로젝트: CeliaEva98/BIT706A2
        private void buttonManageAccounts_Click(object sender, EventArgs e)
        {
            this.Hide();
            ManageAccounts newManage = new ManageAccounts();

            newManage.Show();
        }
예제 #2
0
        private void buttonAddAccount_Click(object sender, EventArgs e)
        {
            Boolean enteredIDCorrect = checkEnteredID();

            if (enteredIDCorrect != true)
            {
                labelError.Text = "Incorrect ID entered. Please try again";
            }
            else
            {
                int custID = Int32.Parse(textBoxCustID.Text);
                if (control.FindCustomer(custID) != null && boxSelected == true)
                {
                    string boxSelectedName = selectedBox();
                    if (boxSelectedName != "None")
                    {
                        control.AddAccount(custID, boxSelectedName);
                        this.Hide();
                        newManage.Show();
                    }
                }
            }
        }