Exemplo n.º 1
0
 protected override void RefreshControl()
 {
     if (this.Wrapper.ISASpecific != null)
     {
         if (!string.IsNullOrEmpty(this.Wrapper.ISASpecific.Guid))
         {
             SetModel(InventoryBrowserModel.GetModel(this.Wrapper.ISASpecific));
         }
     }
 }
Exemplo n.º 2
0
 protected override void RefreshControl()
 {
     if (this.Wrapper.LibraryCategory != null)
     {
         if (!string.IsNullOrEmpty(this.Wrapper.LibraryCategory.Guid))
         {
             SetModel(InventoryBrowserModel.GetModel(this.Wrapper.LibraryCategory));
         }
     }
 }
Exemplo n.º 3
0
        public TransportPage(WizardParams Params)
            : base(Params)
        {
            InitializeComponent();

            _treeView.NodeControls.Clear();
            _treeView.AddIconControl("Icon");
            _treeView.AddTextBoxControl("Name");
            //List<ComponentWrapper> CWL = new List<ComponentWrapper>();
            //foreach (LibraryCategoryWrapper LCWW in PK.Wrapper.GetTransports())
            //{
            //    if (PW.IsSolutionWizardVisible) PWL.Add(PW);
            //}

            _treeView.SetModel(InventoryBrowserModel.GetComponentNodeModel <LibraryCategoryWrapper>(PK.Wrapper.GetTransports().ToArray()), false);
        }
Exemplo n.º 4
0
        public ProcessorPage(WizardParams Params)
            : base(Params)
        {
            InitializeComponent();
            _treeView.NodeControls.Clear();
            _treeView.AddIconControl("Icon");
            _treeView.AddTextBoxControl("Name");
            List <ProcessorWrapper> PWL = new List <ProcessorWrapper>();

            foreach (ProcessorWrapper PW in PK.Wrapper.GetProcessors())
            {
                if (PW.IsSolutionWizardVisible)
                {
                    PWL.Add(PW);
                }
            }

            _treeView.SetModel(InventoryBrowserModel.GetComponentNodeModel <ProcessorWrapper>(PWL.ToArray()), false);
        }
Exemplo n.º 5
0
        public SolutionProjectsPage(WizardParams Params)
            : base(Params)
        {
            InitializeComponent();

            if (PK.Wrapper.GetProjectTemplates().Count == 0)
            {
                PK.Wrapper.LoadTemplateProjects();
            }

            _treeView.NodeControls.Clear();
            NodeCheckBox checkBox = _treeView.AddCheckBoxControl("Checked");

            checkBox.IsVisibleValueNeeded     += new EventHandler <NodeControlValueEventArgs>(checkBox_IsVisibleValueNeeded);
            checkBox.IsEditEnabledValueNeeded += new EventHandler <NodeControlValueEventArgs>(checkBox_IsVisibleValueNeeded);
            _treeView.AddIconControl("Icon");
            _treeView.AddTextBoxControl("Name");

            List <ComponentWrapper> nativeProjects = new List <ComponentWrapper>();
            List <ComponentWrapper> clrProjects    = new List <ComponentWrapper>();

            foreach (ProjectWrapper project in PK.Wrapper.GetProjectTemplates())
            {
                ComponentWrapper component = ComponentWrapper.GetComponentWrapper(project);
                if (project.IsClrProject)
                {
                    clrProjects.Add(component);
                }
                else
                {
                    nativeProjects.Add(component);
                }
            }

            Collection <RootNode> roots = new Collection <RootNode>();

            roots.Add(new RootNode(null, "Native Projects", nativeProjects.ToArray()));
            roots.Add(new RootNode(null, "CLR Projects", clrProjects.ToArray()));
            _treeView.SetModel(InventoryBrowserModel.GetModel(roots), true);
        }
Exemplo n.º 6
0
 protected override void RefreshControl()
 {
     this.SetModel(InventoryBrowserModel.GetModel(this.Wrapper.FeatureAssociations));
 }
Exemplo n.º 7
0
 protected void SetModel(InventoryBrowserModel model)
 {
     _treeView.SetModel(model, false);
 }
Exemplo n.º 8
0
        void Wrapper_ElementFindedEvent(object sender, PortingKitWrapper.ElementFindedEventArgs e)
        {
            Collection <ComponentNode> nodes = new Collection <ComponentNode>();

            if (e.ComponentDescriptor.Component != null)
            {
                componentList.Add(e.ComponentDescriptor.Component);
            }
            foreach (ComponentWrapper component in componentList)
            {
                nodes.Add(new ComponentNode(component, null));
            }
            _treeView.SetModel(InventoryBrowserModel.GetModel(nodes), false);
            //if (e.ComponentDescriptor.Component != null)
            //{
            //    ListViewItem it = new ListViewItem(GetComponentName(e.ComponentDescriptor));
            //    it.Tag = e.ComponentDescriptor;
            //    switch (e.ComponentDescriptor.Component.ComponentType)
            //    {
            //        case ComponentTypeWrapper.Library:
            //            it.ImageIndex = (int)MFTreeNodeBase.ImageKeysEnum.Library;
            //            break;
            //        case ComponentTypeWrapper.Feature:
            //            it.ImageIndex = (int)MFTreeNodeBase.ImageKeysEnum.Feature;
            //            break;
            //        case ComponentTypeWrapper.MFAssembly:
            //            break;
            //        case ComponentTypeWrapper.MFSolution:
            //            it.ImageIndex = (int)MFTreeNodeBase.ImageKeysEnum.Solution;
            //            break;
            //        case ComponentTypeWrapper.Processor:
            //            it.ImageIndex = (int)MFTreeNodeBase.ImageKeysEnum.Processor;
            //            break;
            //        case ComponentTypeWrapper.OperatingSystem:
            //            break;
            //        case ComponentTypeWrapper.BuildTool:
            //            break;
            //        case ComponentTypeWrapper.ISA:
            //            it.ImageIndex = (int)MFTreeNodeBase.ImageKeysEnum.ISA;
            //            break;
            //        case ComponentTypeWrapper.BuildParameter:
            //            break;
            //        case ComponentTypeWrapper.LibraryCategory:
            //            it.ImageIndex = (int)MFTreeNodeBase.ImageKeysEnum.LibraryCategory;
            //            break;
            //        case ComponentTypeWrapper.Unknown:
            //            break;
            //        default:
            //            break;
            //    }
            //    AddItemInList(it);
            //}
            //else if (e.ComponentDescriptor.File != null)
            //{

            //    ListViewItem it = null;

            //    if (e.ComponentDescriptor.Line == null)
            //        it = new ListViewItem(GetComponentName(e.ComponentDescriptor));
            //    else
            //    {
            //        //it = new ListViewItem(GetComponentName(e.ComponentDescriptor) + ":      " + e.ComponentDescriptor.Line.Text.Trim());
            //        it = new ListViewItem(GetComponentName(e.ComponentDescriptor) + ":      ");
            //        it.SubItems.Add(e.ComponentDescriptor.Line.Text.Trim());
            //    }

            //    it.Tag = e.ComponentDescriptor;
            //    it.ImageIndex = (int)MFSourceFileTreeNode.FileName2ImageKey(e.ComponentDescriptor.File.File);
            //    AddItemInList(it);
            //}
        }
Exemplo n.º 9
0
 protected override void RefreshControl()
 {
     SetModel(InventoryBrowserModel.GetModel(this.Wrapper.FeatureDependencies));
 }
Exemplo n.º 10
0
 public RootNode(InventoryBrowserModel owner, string text, Array items)
     : this(owner, text, items, Resources.CompFolder)
 {
 }
Exemplo n.º 11
0
 public RootNode(InventoryBrowserModel owner, string text, Array items, OnAddItemHandler onAddItem)
     : this(owner, text, items, Resources.CompFolder, onAddItem)
 {
 }
Exemplo n.º 12
0
 public RootNode(InventoryBrowserModel owner, string text, Array items, Image icon)
     : this(owner, text, items, icon, ItemsNode.OnItemDefault)
 {
 }
Exemplo n.º 13
0
 protected override void RefreshControl()
 {
     this.SetModel(InventoryBrowserModel.GetModel(this.Wrapper.ComponentDependencies));
 }