Esempio n. 1
0
 public VoteCandidate(List <string> Candidates, List <AVote> Ballots, AddVoteSystem AddVoteForm)
 {
     InitializeComponent();
     this.Candidates  = Candidates;
     this.Ballots     = Ballots;
     this.AddVoteForm = AddVoteForm;
     this.TablePanel.Controls.Add(this.Table = new VotingInfoTable(Candidates, null, false));
 }
Esempio n. 2
0
        private void StartVoteButton_Click(object sender, EventArgs e)
        {
            ArrayList aList = new ArrayList();

            for (int i = 0; i < this.CandidateListBox.Items.Count; i++)
            {
                aList.Add(this.CandidateListBox.Items[i]);
            }
            AddVoteSystem newSystem = new AddVoteSystem(aList, this);

            newSystem.Show();
        }