Ejemplo n.º 1
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();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public bool GetLatest(string path, SourceControlBase SourceControl)
 {
     return(SourceControlUI.GetLatest(path, SourceControl));
 }