コード例 #1
0
        public void loadMappingSet(MappingFramework.MappingSet mappingSet)
        {
            List <Mapping>  mappingList = mappingSet.mappings;
            List <TreeItem> sourceItems = new List <TreeItem>();
            List <TreeItem> targetItems = new List <TreeItem>();

            graphics = this.CreateGraphics();
            foreach (Mapping map in mappingList)
            {
                sourceItems.Add(new TreeItem(map.source.fullMappingPath));
                targetItems.Add(new TreeItem(map.target.fullMappingPath));
            }

            modelSetSource          = new ModelSetContainer("Source", sourceItems);
            modelSetTarget          = new ModelSetContainer("Target", targetItems);
            modelSetSource.Location = new Point(0, 0);
            modelSetTarget.Location = new Point(800, 0);
            this.Controls.Add(modelSetSource);
            this.Controls.Add(modelSetTarget);
            modelSetSource.tv.IsLeft          = true;
            modelSetTarget.tv.IsLeft          = false;
            modelSetSource.tv.NodeMouseClick += new TreeNodeMouseClickEventHandler(modelSetSource_NodeMouseClick);
            this.Paint += new PaintEventHandler(panel1_Paint);
            this.Show();
        }
コード例 #2
0
 public void loadMappingSet(MP.MappingSet mappingSet)
 {
     //first clear the existing mappings
     this.clear();
     //then add the new mappingSet
     this.mappingSet             = mappingSet;
     this.sourceTreeView.Objects = new List <MP.MappingNode>()
     {
         mappingSet.source
     };
     this.targetTreeView.Objects = new List <MP.MappingNode>()
     {
         mappingSet.target
     };
     //expand the treeviews
     this.sourceTreeView.ExpandAll();
     this.targetTreeView.ExpandAll();
 }
コード例 #3
0
 void loadMapping(MappingFramework.MappingSet mappingSet)
 {
     this.mappingControl.loadMappingSet(mappingSet);
     model.activateTab(mappingControlName);
 }
コード例 #4
0
 void loadMapping(MappingFramework.MappingSet mappingSet)
 {
     this.mappingControl.loadMappingSet(this.getCurrentMappingSet(true));
     model.activateTab(mappingControlName);
 }