private void btnAddParty_Click(object sender, EventArgs e)
 {
     if (lbEllections.SelectedItem != null)
     {
         Ellection   ellection = (Ellection)lbEllections.SelectedItem;
         CreateParty popup     = new CreateParty(ellection.ID, null);
         popup.Show();
     }
 }
 private void btnEditParty_Click(object sender, EventArgs e)
 {
     if (lbParties.SelectedItem != null)
     {
         Party       party = (Party)lbParties.SelectedItem;
         CreateParty popup = new CreateParty(0, party);
         popup.Show();
     }
 }