Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }