internal frmAddCandidate(frmModule fmain, Candidates candidates) { InitializeComponent(); this.fmain = fmain; this.candidates = candidates; }
internal frmChangeCandidate(frmModule fmain, Candidates candidates) { InitializeComponent(); lstCandidates = new List <Element>(); bsCandidates = new BindingSource(); this.fmain = fmain; this.candidates = candidates; RefreshCandidates(); }
internal frmDeleteCandidate(frmModule fmain, Candidates candidates) { InitializeComponent(); actions = new List <Element>(new Element[2] { new Element(0, ""), new Element(1, Properties.Resources.frmDeleteCandidateStatusDelete) }); this.fmain = fmain; this.candidates = candidates; dtCandidates = new DataTable("Candidates"); dtCandidates.Columns.Add(new DataColumn("Candidate", typeof(Element))); dsCandidates = new DataSet(); dsCandidates.Tables.Add(dtCandidates); bsCandidates = new BindingSource(); RefreshCandidates(); }
public Module(Scalar <string> method, Scalar <Int32> numberCandidates, Scalar <Int32> numberVoters, Matrix <Int32> dataVotes, Vector <Int32> points) { form = new frmModule(method, numberCandidates, numberVoters, dataVotes, points, this.Methods); }
public Module(Method method) { form = new frmModule(this.Methods); form.Text = Name; form.cmbMethod.SelectedItem = method; }
public Module() { form = new frmModule(this.Methods); form.Text = Name; }