示例#1
0
 private void c_Profile_SelectedIndexChanged(object sender, EventArgs e)
 {
     enableOrder();
     String[] info = NewAccount.accountInfo(c_Profile.Text);
     setPizza(info);
     if (info[0] == "")
     {
         disableOrder();
         return;
     }
 }
示例#2
0
        private void b_Save_Click(object sender, EventArgs e)
        {
            NewAccount newAccount = new NewAccount();

            newAccount.ShowDialog();
            if (NewAccount.canceled)
            {
                return;
            }
            NewAccount.canceled = true;
            setPizza(newAccount);
            NewAccount.saveAccount(this);
            c_Profile.Items.AddRange(NewAccount.readAccounts());
            c_Profile.Refresh();
        }
示例#3
0
 private void setPizza(NewAccount newAccount)
 {
     setPizza(newAccount.getValues());
 }
示例#4
0
 private void b_Delete_Click(object sender, EventArgs e)
 {
     NewAccount.removeAccount(c_Profile.Text);
     c_Profile.Items.Remove(c_Profile.Text);
     c_Profile.Refresh();
 }