private void SaveButton_Click(object sender, EventArgs e) { Candidate aCandidate = new Candidate(nameTextBox.Text, symbolTextBox.Text); string msg; msg = aCandidateBll.Save(aCandidate); MessageBox.Show(msg); }
private void candidateSaveButton_Click(object sender, EventArgs e) { Candidate aCandidate = new Candidate(nameTextBox.Text, symbolTextBox.Text); aCandidate.CandidateName = nameTextBox.Text; aCandidate.CandidateSymbol = symbolTextBox.Text; string msg = aCandidateBll.Save(aCandidate); MessageBox.Show(msg); symbolComboBox.Items.Add(symbolTextBox.Text); }