コード例 #1
0
ファイル: UpdateOLA.cs プロジェクト: CansuPakel/Csharp
        public UpdateOLA(Hoofdvenster hoofdvenster)
        {
            InitializeComponent();
            logic = new Logica();
            CmbDocent.DataSource    = logic.GetDocents();
            CmbDocent.DisplayMember = "fullname";

            CmbOPO.DataSource    = logic.GetAllOPOs();
            CmbOPO.DisplayMember = "Naam";

            if (hoofdvenster.GetIndex().Equals("Edit"))
            {
                edit                    = true;
                GetVorigeDocent         = (Docent)hoofdvenster.GetDocent();;
                GetVorigeOpo            = hoofdvenster.GetValues().SelectedItems[0].SubItems[2].Text;
                TxtCode.Text            = hoofdvenster.GetValues().SelectedItems[0].SubItems[0].Text;
                TxtCode.ReadOnly        = true;
                TxtNaam.Text            = hoofdvenster.GetValues().SelectedItems[0].SubItems[1].Text;
                NudStudiepunten.Value   = Convert.ToInt32(hoofdvenster.GetValues().SelectedItems[0].SubItems[3].Text);
                CmbOPO.SelectedIndex    = CmbOPO.FindStringExact(hoofdvenster.GetValues().SelectedItems[0].SubItems[2].Text);
                CmbDocent.SelectedIndex = CmbDocent.FindStringExact(hoofdvenster.GetCmb());
                docent                  = (Docent)CmbDocent.SelectedItem;
                opo = (OPO)CmbOPO.SelectedItem;
            }
        }
コード例 #2
0
 public NieuwOPO(Hoofdvenster hoofdvenster)
 {
     InitializeComponent();
     hoofdvenster = this.hoofdvenster;
     logic        = new Logica();
 }
コード例 #3
0
ファイル: NieuwDocent.cs プロジェクト: CansuPakel/Csharp
 public NieuwDocent(Hoofdvenster hoofdvenster)
 {
     InitializeComponent();
     logic = new Logica();
 }