Пример #1
0
 public MappedClassUserControl(MappedClassListUserControl mappedClassListUserCtrl)
 {
     InitializeComponent();
     SetMapping(null);
     m_mappedClassListUserCtrl = mappedClassListUserCtrl;
     this.checkBoxAllowBrowse.CheckedChanged   += new System.EventHandler(this.checkBoxAllowBrowse_CheckedChanged);
     this.checkBoxIsPolymorphic.CheckedChanged += new System.EventHandler(this.checkBoxIsPolymorphic_CheckedChanged);
     this.textBoxCategory.TextChanged          += new System.EventHandler(this.textBoxCategory_TextChanged);
 }
Пример #2
0
        private void LoadMapping(bool useUserCfg)
        {
            radSplitContainer.SplitPanels[0].Controls.Clear();
            radSplitContainer.SplitPanels[1].Controls.Clear();
            mcl = null;
            MappingReader mappingManager = new MappingReader(cfg, usercfg, useUserCfg);

            mcl = new MappedClassListUserControl(mappingManager, radSplitContainer.SplitPanels[1]);
            radSplitContainer.SplitPanels[0].Controls.Add(mcl);
            mcl.Dock = DockStyle.Fill;

            MappedClassUserControl mappedClassUserCtrl = new MappedClassUserControl(mcl);

            mcl.MappedClassUserCtrl = mappedClassUserCtrl;
            radSplitContainer.SplitPanels[1].Controls.Add(mappedClassUserCtrl);
            mappedClassUserCtrl.Dock = DockStyle.Fill;
        }