コード例 #1
0
ファイル: CFormMapTypeTable.cs プロジェクト: ykebaili/Timos
 public void Initialiser(
     CTypeTableParametrable tpSource,
     CTypeTableParametrable tpCible,
     DataTable dtSource,
     DataTable dtCible)
 {
     m_tpCible  = tpCible;
     m_dtCible  = dtCible;
     m_tpSource = tpSource;
     m_dtSource = dtSource;
     m_mappeur  = new CMappeurTypeTableParametrableTypeTableParametrable(tpSource, tpCible, true);
     m_ctrlEditMappage.Initialiser(m_mappeur);
 }
コード例 #2
0
ファイル: CControlEditMappage.cs プロジェクト: ykebaili/Timos
        public void Initialiser(CMappeurTypeTableParametrableTypeTableParametrable mappeur)
        {
            m_spc.Panel1.Controls.Clear();
            m_spc.Panel1.Controls.Add(m_lblTitre1);
            m_lblTitre1.SendToBack();
            CControlEditMappageColonne ctrlEntete1 = new CControlEditMappageColonne();

            ctrlEntete1.Initialiser(false);
            m_spc.Panel1.Controls.Add(ctrlEntete1);
            ctrlEntete1.Dock = DockStyle.Top;
            ctrlEntete1.BringToFront();

            m_spc.Panel2.Controls.Clear();
            m_spc.Panel2.Controls.Add(m_lblTitre2);
            m_lblTitre2.SendToBack();
            CControlEditMappageColonne ctrlEntete2 = new CControlEditMappageColonne();

            ctrlEntete2.Initialiser(true);
            m_spc.Panel2.Controls.Add(ctrlEntete2);
            ctrlEntete2.Dock = DockStyle.Top;
            ctrlEntete2.BringToFront();

            foreach (CMappageColonneTableParametrableColonneTableParametrable map in mappeur.Mappages)
            {
                CControlEditMappageColonne ctrl = new CControlEditMappageColonne();
                ctrl.Initialiser(map, mappeur.TypeTableSource);
                m_spc.Panel1.Controls.Add(ctrl);
                ctrl.Dock = DockStyle.Top;
                ctrl.BringToFront();

                m_ctrlsEdition.Add(ctrl);

                CControlEditMappageColonne ctrlBis = new CControlEditMappageColonne();
                ctrlBis.Initialiser(map);
                m_spc.Panel2.Controls.Add(ctrlBis);
                ctrlBis.Dock = DockStyle.Top;
                ctrlBis.BringToFront();

                m_ctrlsEdition.Add(ctrlBis);
            }
            RecalcHeight();
        }