예제 #1
0
        internal frmAddCandidate(frmModule fmain, Candidates candidates)
        {
            InitializeComponent();

            this.fmain      = fmain;
            this.candidates = candidates;
        }
예제 #2
0
        internal frmChangeCandidate(frmModule fmain, Candidates candidates)
        {
            InitializeComponent();

            lstCandidates = new List <Element>();
            bsCandidates  = new BindingSource();

            this.fmain      = fmain;
            this.candidates = candidates;

            RefreshCandidates();
        }
예제 #3
0
        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();
        }
예제 #4
0
 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);
 }
예제 #5
0
 public Module(Method method)
 {
     form      = new frmModule(this.Methods);
     form.Text = Name;
     form.cmbMethod.SelectedItem = method;
 }
예제 #6
0
 public Module()
 {
     form      = new frmModule(this.Methods);
     form.Text = Name;
 }