コード例 #1
0
        // Void for saving all the values in order to show them in Excelgrid
        public void saveValues()
        {
            dataClass dc = new dataClass();
            dc.Opldomcode = codotb.Text;
            dc.Doscode = codostb.Text;
            dc.Nakwados = nakwdtb.Text;
            dc.Crebcokwali = crkwtb.Text;
            dc.Naamkwali = nakwtb.Text;
            dc.Kdversie = kdtb.Text;
            dc.Opleivari = opvacb.Text;
            dc.Niveau = nicb.Text;
            dc.Leerweg = lwtb.Text;
            dc.Kenncentr = kctb.Text;
            dc.Startdeeln = stjrtb.Text;
            dc.Examprof = exprtb.Text;
            dc.Manager = matb.Text;
            dc.Portehoud = phtb.Text;
            dc.Exmnplanco = epctb.Text;
            dc.Kt1 = ktnbox1.Text;
            dc.Ktnm1 = ktbox1.Text;
            dc.Wp1 = wpbox1.Text;
            dc.Kt2 = ktnbox2.Text;
            dc.Ktnm2 = ktbox2.Text;
            dc.Wp2 = wpbox2.Text;
            dc.Kt3 = ktnbox3.Text;
            dc.Ktnm3 = ktbox3.Text;
            dc.Wp3 = wpbox3.Text;
            dc.Kt4 = ktnbox4.Text;
            dc.Ktnm4 = ktbox4.Text;
            dc.Wp4 = wpbox4.Text;
            dc.Kt5 = ktnbox5.Text;
            dc.Ktnm5 = ktbox5.Text;
            dc.Wp5 = wpbox5.Text;
            dc.Kt6 = ktnbox6.Text;
            dc.Ktnm6 = ktbox6.Text;
            dc.Wp6 = wpbox6.Text;

            excelgrid.Show();
            formDataList.Add(dc);
            excelgrid.FormDataList = formDataList;
        }
コード例 #2
0
ファイル: dataList.cs プロジェクト: RJanssen1990/ProjectXcel
 public void Add(dataClass dataclass)
 {
     List.Add(dataclass);
 }