Exemple #1
0
 public MainWindow()
 {
     InitializeComponent();
     foreach (Election election in sql.LoadElections())
     {
         cbElection.Items.Add(election);
     }
 }
Exemple #2
0
 public ResultWindow()
 {
     InitializeComponent();
     foreach (Party party in sql.LoadAllParties())
     {
         cbParty.Items.Add(party);
     }
     foreach (Election election in sql.LoadElections())
     {
         cbElections.Items.Add(election);
     }
     lblTitle.Visible    = false;
     election.parties    = new List <Party>();
     election.results    = new List <ElectionResult>();
     tbDateTime.Visible  = true;
     lblDateTime.Visible = true;
     Update.Text         = "Nieuw resultaat";
 }