Esempio n. 1
0
        private void FillData()
        {
            selectedTime  = dtpDatum.Value.Date;
            txtNotes.Text = OpdrachtManagement.getNotesFromDate(selectedTime);

            dataGridView1.DataSource = AgendaManagement.GetAgendaItems(selectedTime);
            DisableGridviewSorting();
            ColorizeRows();
        }
Esempio n. 2
0
        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {
            flpContract.Controls.Clear();
            flpOpdracht.Controls.Clear();
            selectedTime  = dtpDatum.Value.Date;
            txtNotes.Text = OpdrachtManagement.getNotesFromDate(selectedTime);


            flpContract.Controls.Add(tableLayoutPanel1);
            foreach (rit_instantie ri in ContractManagement.getRitten(selectedTime))
            {
                /* ucAgendaOpdracht uc = new ucAgendaOpdracht();
                 * uc.opdracht = ContractManagement.getContract(ri.contract_rit);
                 * uc.rit_instantie = ri;
                 * Console.WriteLine("write!");
                 * flpContract.Controls.Add(uc);*/



                if (selectedTime.ToString("dddd", new CultureInfo("en-US")) == (ri.contract_rit.dag))
                {
                    ucAgendaOpdracht uc = new ucAgendaOpdracht();
                    uc.opdracht      = ContractManagement.getContract(ri.contract_rit);
                    uc.rit_instantie = ri;
                    uc.Rit           = ri.contract_rit;
                    Console.Write("print and print");
                    flpContract.Controls.Add(uc);
                }
            }


            flpOpdracht.Controls.Add(tableLayoutPanel2);
            foreach (opdracht o in OpdrachtManagement.getOpdrachten(selectedTime))
            {
                //ucAgendaOpdracht uc = new ucAgendaOpdracht();

                ucAgendaContract uc = new ucAgendaContract();
                uc.opdracht = o;
                flpOpdracht.Controls.Add(uc);
            }
        }
Esempio n. 3
0
 private void frmNotities_Load(object sender, EventArgs e)
 {
     txtNotes.Text = OpdrachtManagement.getNotesFromDate(date);
 }