private void btnEdit_Click(object sender, EventArgs e) { if (lbEllections.SelectedItem != null) { CreateEllection popup = new CreateEllection((Ellection)lbEllections.SelectedItem); popup.Show(); } }
private void btnCreate_Click(object sender, EventArgs e) { CreateEllection popup = new CreateEllection(null); popup.Show(); }