コード例 #1
0
        StackPanel ITreeViewItem.Header()
        {
            string ImageFile;

            if (IsGingerDefualtFolder)
            {
                ImageFile = "@Documents_16x16.png";
            }
            else
            {
                ImageFile = "@Folder2_16x16.png";
            }
            return(TreeViewUtils.CreateItemHeader(Folder, ImageFile, SourceControlUI.GetItemSourceControlImage(Path, ref ItemSourceControlStatus)));
        }
コード例 #2
0
        public void SourceControlGetLatestVersion(object sender, System.Windows.RoutedEventArgs e)
        {
            if (Reporter.ToUser(eUserMsgKey.LoseChangesWarn) == Amdocs.Ginger.Common.eUserMsgSelection.No)
            {
                return;
            }

            Reporter.ToStatus(eStatusMsgKey.GetLatestFromSourceControl);
            if (string.IsNullOrEmpty(this.NodePath()))
            {
                Reporter.ToUser(eUserMsgKey.SourceControlUpdateFailed, "Invalid Path provided");
            }
            else
            {
                SourceControlUI.GetLatest(this.NodePath(), WorkSpace.Instance.Solution.SourceControl);
            }
            Reporter.HideStatusMessage();
        }
コード例 #3
0
ファイル: MainWindow.xaml.cs プロジェクト: lanicon/Ginger
        private void btnSourceControlGetLatest_Click(object sender, RoutedEventArgs e)
        {
            if (Reporter.ToUser(eUserMsgKey.LoseChangesWarn) == Amdocs.Ginger.Common.eUserMsgSelection.No)
            {
                return;
            }

            Reporter.ToStatus(eStatusMsgKey.GetLatestFromSourceControl);
            if (string.IsNullOrEmpty(WorkSpace.Instance.Solution.Folder))
            {
                Reporter.ToUser(eUserMsgKey.SourceControlUpdateFailed, "Invalid Path provided");
            }
            else
            {
                SourceControlUI.GetLatest(WorkSpace.Instance.Solution.Folder, WorkSpace.Instance.Solution.SourceControl);
            }

            App.OnAutomateBusinessFlowEvent(AutomateEventArgs.eEventType.UpdateAppAgentsMapping, null);
            Reporter.HideStatusMessage();
        }
コード例 #4
0
 public bool GetLatest(string path, SourceControlBase SourceControl)
 {
     return(SourceControlUI.GetLatest(path, SourceControl));
 }
コード例 #5
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)));
        }
コード例 #6
0
 public bool Revert(string path, SourceControlBase SourceControl)
 {
     return(SourceControlUI.Revert(path, SourceControl));
 }