예제 #1
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();
        }
예제 #2
0
        private static void SolutionCleanup()
        {
            if (WorkSpace.Instance.SolutionRepository != null)
            {
                WorkSpace.Instance.PlugInsManager.CloseAllRunningPluginProcesses();
            }

            if (!WorkSpace.Instance.RunningInExecutionMode)
            {
                AppSolutionAutoSave.SolutionAutoSaveEnd();
            }

            WorkSpace.Instance.Solution = null;

            CloseAllRunningAgents();
            App.OnAutomateBusinessFlowEvent(AutomateEventArgs.eEventType.ClearAutomate, null);
            AutoLogProxy.SetAccount("");
            WorkSpace.Instance.SolutionRepository = null;
            WorkSpace.Instance.SourceControl      = null;
        }