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))); }
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(); }
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(); }
public bool GetLatest(string path, SourceControlBase SourceControl) { return(SourceControlUI.GetLatest(path, SourceControl)); }
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))); }
public bool Revert(string path, SourceControlBase SourceControl) { return(SourceControlUI.Revert(path, SourceControl)); }