private void c_Profile_SelectedIndexChanged(object sender, EventArgs e) { enableOrder(); String[] info = NewAccount.accountInfo(c_Profile.Text); setPizza(info); if (info[0] == "") { disableOrder(); return; } }
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(); }
private void setPizza(NewAccount newAccount) { setPizza(newAccount.getValues()); }
private void b_Delete_Click(object sender, EventArgs e) { NewAccount.removeAccount(c_Profile.Text); c_Profile.Items.Remove(c_Profile.Text); c_Profile.Refresh(); }