コード例 #1
0
ファイル: BaseTreePage.cs プロジェクト: schifflee/PKStudio
        private void ShowDescription(object sender, ComponentWrapper component)
        {
            if (sender == _treeView)
            {
                ReferenceData refData = this.References[component];

                DescriptionTB.Clear();

                if (refData.Wrapper is FeatureWrapper)
                {
                    ShowDescription(refData.Wrapper as FeatureWrapper);
                }

                if (refData.Wrapper is LibraryWrapper)
                {
                    ShowDescription(refData.Wrapper as LibraryWrapper);
                }

                if (refData.Wrapper is LibraryCategoryWrapper)
                {
                    ShowDescription(refData.Wrapper as LibraryCategoryWrapper);
                }

                SetupTree(_dependTreeView, InventoryBrowserModel.GetModel(this.References.GetDependsFrom(component)), true);
                SetupTree(_referencedByTreeView, InventoryBrowserModel.GetModel(this.References.GetRequiredBy(component)), true);
            }
            else
            {
                //_treeView.SetSelectedComponent(component);
            }
        }
コード例 #2
0
 private void ShowDescription(ProjectWrapper project)
 {
     DescriptionTB.Clear();
     DescriptionTB.AppendText("Name: " + project.Name + "\r\n\r\n");
     DescriptionTB.AppendText("Project Path:\r\n");
     DescriptionTB.AppendText(project.ProjectPath + "\r\n\r\n");
     DescriptionTB.AppendText("Description:\r\n");
     DescriptionTB.AppendText(project.Description + "\r\n\r\n");
 }
コード例 #3
0
ファイル: TransportPage.cs プロジェクト: schifflee/PKStudio
 private void ShowDescription(LibraryCategoryWrapper Transport)
 {
     DescriptionTB.Clear();
     DescriptionTB.AppendText("Name: " + Transport.Name + "\r\n\r\n");
     DescriptionTB.AppendText("Project Path:\r\n");
     DescriptionTB.AppendText(Transport.ProjectPath + "\r\n\r\n");
     DescriptionTB.AppendText("Is Transport:\r\n");
     DescriptionTB.AppendText(Transport.IsTransport + "\r\n\r\n");
     DescriptionTB.AppendText("Description:\r\n");
     DescriptionTB.AppendText(Transport.Description + "\r\n\r\n");
 }
コード例 #4
0
ファイル: ProcessorPage.cs プロジェクト: schifflee/PKStudio
        private void ShowDescription(ComponentWrapper processor)
        {
            ProcessorWrapper PW = PK.Wrapper.FindProcessor(processor.Guid);

            DescriptionTB.Clear();
            if (PW != null)
            {
                DescriptionTB.AppendText("Name: " + PW.Name + "\r\n\r\n");
                DescriptionTB.AppendText("Project Path:\r\n");
                DescriptionTB.AppendText(PW.ProjectPath + "\r\n\r\n");
                DescriptionTB.AppendText("Description:\r\n");
                DescriptionTB.AppendText(PW.Description + "\r\n\r\n");
            }
        }
コード例 #5
0
ファイル: BaseTreePage.cs プロジェクト: schifflee/PKStudio
 private void ShowDescription(FeatureWrapper feature)
 {
     DescriptionTB.Clear();
     DescriptionTB.AppendText("Name: " + feature.Name + "\r\n\r\n");
     DescriptionTB.AppendText("Project Path:\r\n");
     DescriptionTB.AppendText(feature.ProjectPath + "\r\n\r\n");
     DescriptionTB.AppendText("Required: " + feature.Required + "\r\n\r\n");
     DescriptionTB.AppendText("Solution Wizard Visible: " + feature.IsSolutionWizardVisible + "\r\n\r\n");
     if (!string.IsNullOrEmpty(feature.Filter))
     {
         DescriptionTB.AppendText("Filter: " + feature.Filter + "\r\n\r\n");
     }
     DescriptionTB.AppendText("Description:\r\n");
     DescriptionTB.AppendText(feature.Description + "\r\n\r\n");
 }
コード例 #6
0
 private void ClearBTN_Click(object sender, RoutedEventArgs e)
 {
     TermTB.Clear();
     DescriptionTB.Clear();
 }