コード例 #1
0
ファイル: HTMLTDTreeItem.cs プロジェクト: ramizilb/Ginger
        StackPanel ITreeViewItem.Header()
        {
            string ImageFileName = "tab16x16.png";  // TODO:replace to black button style
            string Title         = this.ElementInfo.ElementTitle;

            return(TreeViewUtils.CreateItemHeader(Title, ImageFileName));
        }
コード例 #2
0
 StackPanel ITreeViewItem.Header()
 {
     if (IsGingerDefualtFolder)
     {
         if (WorkSpace.Instance.BetaFeatures.BFUseSolutionRepositry)
         {
             return(TreeViewUtils.CreateItemHeader(mRepositoryFolder.FolderName, "@WorkFlow_16x16.png", Ginger.SourceControl.SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
         }
         else
         {
             return(TreeViewUtils.CreateItemHeader(Folder, "@WorkFlow_16x16.png", Ginger.SourceControl.SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
         }
     }
     else
     {
         if (WorkSpace.Instance.BetaFeatures.BFUseSolutionRepositry)
         {
             return(TreeViewUtils.CreateItemHeader(mRepositoryFolder.FolderName, "@Folder2_16x16.png", Ginger.SourceControl.SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
         }
         else
         {
             return(TreeViewUtils.CreateItemHeader(Folder, "@Folder2_16x16.png", Ginger.SourceControl.SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
         }
     }
 }
コード例 #3
0
        StackPanel ITreeViewItem.Header()
        {
            string ImageFile = "@Folder2_16x16.png";  // TODO: find icon for Apps
            string Path      = "?";

            return(TreeViewUtils.CreateItemHeader(mApplicationPlatform.AppName, ImageFile, SourceControlUI.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
        }
コード例 #4
0
        StackPanel ITreeViewItem.Header()
        {
            string ImageFileName = "@HorizentalScroller_16x16.png";  // TODO: create DIV icons
            string Title         = this.ElementInfo.ElementTitle;

            return(TreeViewUtils.CreateItemHeader(Title, ImageFileName));
        }
コード例 #5
0
        StackPanel ITreeViewItem.Header()
        {
            string ImageFileName = "@MenuItem_16x16.png";
            string Title         = UIAElementInfo.ElementTitle;

            return(TreeViewUtils.CreateItemHeader(Title, ImageFileName));
        }
コード例 #6
0
        StackPanel ITreeViewItem.Header()
        {
            //TODO: put text icon
            string ImageFileName = "Button16x16.png";

            return(TreeViewUtils.CreateItemHeader(Name, ImageFileName));
        }
コード例 #7
0
        StackPanel ITreeViewItem.Header()
        {
            //TODO: put label icon
            string ImageFileName = "@Label_16x16.png";

            return(TreeViewUtils.CreateItemHeader(Name, ImageFileName));
        }
コード例 #8
0
        StackPanel ITreeViewItem.Header()
        {
            string ImageFileName = "@RadioButton_16x16.png";
            string Title         = this.ElementInfo.ElementTitle;

            return(TreeViewUtils.CreateItemHeader(Title, ImageFileName));
        }
コード例 #9
0
        StackPanel ITreeViewItem.Header()
        {
            // TODO: put ? or unknown
            string ImageFileName = "@Folder_16x16.png";

            return(TreeViewUtils.CreateItemHeader(ElementInfo.ElementTitle, ImageFileName));
        }
コード例 #10
0
        StackPanel ITreeViewItem.Header()
        {
            string ImageFileName = "@Label_16x16.png";   // TODO:  replace me with page image
            string Title         = this.ElementInfo.ElementTitle;

            return(TreeViewUtils.CreateItemHeader(Title, ImageFileName));
        }
コード例 #11
0
        StackPanel ITreeViewItem.Header()
        {
            string ImageFileName = "@Window_16x16.png";
            string Title         = "Page";

            return(TreeViewUtils.CreateItemHeader(Title, ImageFileName));
        }
コード例 #12
0
        StackPanel ITreeViewItem.Header()
        {
            //TODO: Pput better icon for generic control
            string ImageFileName = "@Agent_16x16.png";
            string Title         = AndroidElementInfo.ElementTitle;

            return(TreeViewUtils.CreateItemHeader(Title, ImageFileName));
        }
コード例 #13
0
 StackPanel ITreeViewItem.Header()
 {
     if (Folder == "Subject")
     {
         return(TreeViewUtils.CreateItemHeader(Folder, "@WorkFlow_16x16.png"));
     }
     else
     {
         return(TreeViewUtils.CreateItemHeader(Folder, "@Folder_16x16.png"));
     }
 }
コード例 #14
0
 StackPanel ITreeViewItem.Header()
 {
     if (DSDetails.DSType == DataSourceBase.eDSType.MSAccess)
     {
         return(TreeViewUtils.CreateItemHeader(DSDetails.Name, "@AccessDataSource_16x16.png", Ginger.SourceControl.SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus), DSDetails, DataSourceBase.Fields.Name));
     }
     else
     {
         return(TreeViewUtils.CreateItemHeader(DSDetails.Name, "@DataSource_16x16.png", Ginger.SourceControl.SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus), DSDetails, DataSourceBase.Fields.Name));
     }
 }
コード例 #15
0
 StackPanel ITreeViewItem.Header()
 {
     if (System.IO.Path.GetFileName(FileName).ToUpper().StartsWith("VIDEO"))
     {
         return(TreeViewUtils.CreateItemHeader(System.IO.Path.GetFileNameWithoutExtension(FileName), "@Video_16x16.png"));
     }
     else
     {
         return(TreeViewUtils.CreateItemHeader(System.IO.Path.GetFileNameWithoutExtension(FileName), "@WebFile_16x16.png"));
     }
 }
コード例 #16
0
        StackPanel ITreeViewItem.Header()
        {
            string ImageFile;

            if (IsGingerDefualtFolder)
            {
                ImageFile = "@Documents_16x16.png";
            }
            else
            {
                ImageFile = "@Folder2_16x16.png";
            }
            return(TreeViewUtils.CreateItemHeader(Folder, ImageFile, SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
        }
コード例 #17
0
        StackPanel ITreeViewItem.Header()
        {
            string ImageFile;

            if (IsGingerDefualtFolder)
            {
                ImageFile = "@ExecutionRes_16x16.png";
            }
            else
            {
                ImageFile = "@Folder2_16x16.png";
            }

            return(TreeViewUtils.CreateItemHeader(Folder, ImageFile, Ginger.SourceControl.SourceControlUI.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
        }
コード例 #18
0
ファイル: DocumentTreeItem.cs プロジェクト: ramizilb/Ginger
        StackPanel ITreeViewItem.Header()
        {
            string icon = string.Empty;

            if (FileName != null && System.IO.Path.GetExtension(FileName).ToUpper() == ".FEATURE")
            {
                icon = "@FeatureFile_16X16.png";
            }
            else
            {
                icon = "@Documents_16x16.png";
            }
            StackPanel SP = TreeViewUtils.CreateItemHeader(FileName, icon, Ginger.SourceControl.SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus));

            return(SP);
        }
コード例 #19
0
        StackPanel ITreeViewItem.Header()
        {
            // return TreeViewUtils.CreateItemHeader(mAgentsFolder, nameof(RepositoryFolder<Agent>.DisplayName), eImageType.Folder, GetSourceControlImage(mAgentsFolder), false);

            string ImageFile;

            if (IsGingerDefualtFolder)
            {
                ImageFile = "@Documents_16x16.png";
            }
            else
            {
                ImageFile = "@Folder2_16x16.png";
            }

            return(TreeViewUtils.CreateItemHeader(Folder, ImageFile, Ginger.SourceControl.SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
        }
コード例 #20
0
 StackPanel ITreeViewItem.Header()
 {
     //if root item
     if (Folder == "Root")
     {
         return(TreeViewUtils.CreateItemHeader(Folder, "@WorkFlow_16x16.png"));
     }
     else
     {
         if (!String.IsNullOrWhiteSpace(TestSetName))
         {
             return(TreeViewUtils.CreateItemHeader(TestSetName, "@TestSet_16x16.png"));
         }
         else
         {
             return(TreeViewUtils.CreateItemHeader(Folder, "@Folder_16x16.png"));
         }
     }
 }
コード例 #21
0
        StackPanel ITreeViewItem.Header()
        {
            string ImageFileName = "@TextBox_16x16.png";

            return(TreeViewUtils.CreateItemHeader(Name, ImageFileName));
        }
コード例 #22
0
 StackPanel ITreeViewItem.Header()
 {
     // create binded SP
     return(TreeViewUtils.CreateItemHeader(ReportTemplate.Name, "@Report_16x16.png", Ginger.SourceControl.SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
 }
コード例 #23
0
 StackPanel ITreeViewItem.Header()
 {
     return(TreeViewUtils.CreateItemHeader("Shared Repository", "@SharedRepository_16x16.png", Ginger.SourceControl.SourceControlUI.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
 }
コード例 #24
0
 StackPanel ITreeViewItem.Header()
 {
     return(TreeViewUtils.CreateItemHeader(UIAElementInfo.ElementTitle, ElementInfo.GetElementTypeImage(eElementType.TextBox)));
 }
コード例 #25
0
 StackPanel ITreeViewItem.Header()
 {
     return(TreeViewUtils.CreateItemHeader(Folder, "@Folder2_16x16.png"));
 }
コード例 #26
0
 StackPanel ITreeViewItem.Header()
 {
     return(TreeViewUtils.CreateItemHeader("Legacy Report", "@Report_16x16.png", Ginger.SourceControl.SourceControlIntegration.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
 }
コード例 #27
0
 StackPanel ITreeViewItem.Header()
 {
     //TODO: put text icon
     return(TreeViewUtils.CreateItemHeader(Name, ElementInfo.GetElementTypeImage(eElementType.Button)));
 }
コード例 #28
0
 StackPanel ITreeViewItem.Header()
 {
     return(TreeViewUtils.CreateItemHeader(Name, "@WorkFlow_16x16.png"));
 }
コード例 #29
0
 StackPanel ITreeViewItem.Header()
 {
     return(TreeViewUtils.CreateItemHeader(Name, ElementInfo.GetElementTypeImage(eElementType.ComboBox)));
 }
コード例 #30
0
 StackPanel ITreeViewItem.Header()
 {
     return(TreeViewUtils.CreateItemHeader(mProjEnvironmentFolder, nameof(RepositoryFolder <ProjEnvironment> .DisplayName), eImageType.Folder, GetSourceControlImage(mProjEnvironmentFolder), false));
 }