private void OKButton_Click(object sender, RoutedEventArgs e) { mTags.Clear(); foreach (SelectedTag TA in list) { if (TA.Selected) { mTags.Add(TA.GUID); } } _pageGenericWin.Close(); }
private void Close_Click(object sender, RoutedEventArgs e) { if (WorkSpace.Instance.Solution != null && WorkSpace.Instance.Solution.SourceControl != null) { WorkSpace.Instance.UserProfile.SolutionSourceControlUser = WorkSpace.Instance.Solution.SourceControl.SourceControlUser; WorkSpace.Instance.UserProfile.SolutionSourceControlPass = WorkSpace.Instance.Solution.SourceControl.SourceControlPass; WorkSpace.Instance.UserProfile.SolutionSourceControlAuthorName = WorkSpace.Instance.Solution.SourceControl.SolutionSourceControlAuthorName; WorkSpace.Instance.UserProfile.SolutionSourceControlAuthorEmail = WorkSpace.Instance.Solution.SourceControl.SolutionSourceControlAuthorName; SourceControlIntegration.Disconnect(WorkSpace.Instance.Solution.SourceControl); } genWin.Close(); }
private void Save(object sender, RoutedEventArgs e) { ObservableList <ExternalItemFieldBase> tempItemList = new ObservableList <ExternalItemFieldBase>(); foreach (ExternalItemFieldBase field in mItemsFields.Where(x => x.ToUpdate == true).ToList()) { tempItemList.Add(field); } App.UserProfile.Solution.ExternalItemsFields = tempItemList; App.UserProfile.Solution.SaveSolution(true, SolutionGeneral.Solution.eSolutionItemToSave.ALMSettings); genWin.Close(); }
private void AddVariableButton_Click(object sender, RoutedEventArgs e) { if (xLibraryTab.IsSelected) { AddLibraryVariables(); } else { AddSharedRepoVariables(); } _pageGenericWin.Close(); }
private async void DoSearch(object sender, RoutedEventArgs e) { mWindowExlorerPage.DoSearchControls(); //bool isSearched = await Task.Run(() => mWindowExlorerPage.DoSearchControls()); _GenWin.Close(); //int FoundItemsCount = mWindowExlorerPage.WindowControlsGridView.DataSourceList.Count; //if (isSearched) //{ // Amdocs.Ginger.Common.eUserMsgSelection resultCloseWindow = Reporter.ToUser(eUserMsgKey.CloseFilterPage, FoundItemsCount); // if (resultCloseWindow == Amdocs.Ginger.Common.eUserMsgSelection.Yes) // _GenWin.Close(); //} }
//On Click of Save Button private void SaveBusinessFlowButton_Button_Click(object sender, RoutedEventArgs e) { if (BusinessFlowNameTextBox.Text.Trim().Length == 0) { Reporter.ToUser(eUserMsgKeys.StaticWarnMessage, (GingerDicser.GetTermResValue(eTermResKey.BusinessFlow) + " name cannot be empty", "QTP to Ginger Converter", MessageBoxButton.OK)); return; } mBusinessFlow.Name = BusinessFlowNameTextBox.Text; App.LocalRepository.SaveNewItem(mBusinessFlow); //TODO: open the new BF in Automate tab + make sure it is added to the tree Reporter.ToGingerHelper(eGingerHelperMsgKey.ScriptImported_RefreshSolution); _pageGenericWin.Close(); }
private void DoSearch(object sender, RoutedEventArgs e) { bool isSearched = mWindowExlorerPage.DoSearchControls(); int FoundItemsCount = mWindowExlorerPage.WindowControlsGridView.DataSourceList.Count; if (isSearched) { MessageBoxResult resultCloseWindow = Reporter.ToUser(eUserMsgKeys.CloseFilterPage, FoundItemsCount); if (resultCloseWindow == MessageBoxResult.Yes) { _GenWin.Close(); } } }
private void DoSearch(object sender, RoutedEventArgs e) { bool isSearched = mWindowExlorerPage.DoSearchControls(); int FoundItemsCount = mWindowExlorerPage.WindowControlsGridView.DataSourceList.Count; if (isSearched) { Amdocs.Ginger.Common.eUserMsgSelection resultCloseWindow = Reporter.ToUser(eUserMsgKey.CloseFilterPage, FoundItemsCount); if (resultCloseWindow == Amdocs.Ginger.Common.eUserMsgSelection.Yes) { _GenWin.Close(); } } }
private void OKButton_Click(object sender, RoutedEventArgs e) { //validate details if (FilePathTextBox.Text.Trim() == string.Empty) { Reporter.ToUser(eUserMsgKey.MissingNewDSDetails, "File Path"); return; } else if (DSTypeComboBox.SelectedItem == null) { Reporter.ToUser(eUserMsgKey.MissingNewDSDetails, "DB type"); return; } mDSDetails.FileFullPath = mDSDetails.FilePath.Replace("~", WorkSpace.UserProfile.Solution.Folder); if (!Directory.Exists(Path.GetDirectoryName(mDSDetails.FileFullPath))) { Reporter.ToUser(eUserMsgKey.InvalidDSPath, Path.GetDirectoryName(mDSDetails.FileFullPath)); return; } mDSDetails.FilePath = mDSDetails.FilePath.Replace(WorkSpace.UserProfile.Solution.Folder, "~"); //Pending ObservableList <DataSourceBase> DSList = WorkSpace.Instance.SolutionRepository.GetAllRepositoryItems <DataSourceBase>(); foreach (DataSourceBase ds in DSList) { if (ds.FilePath == mDSDetails.FilePath) { Reporter.ToUser(eUserMsgKey.DuplicateDSDetails, FilePathTextBox.Text.Trim()); return; } } okClicked = true; if (File.Exists(mDSDetails.FileFullPath.Replace("~", WorkSpace.UserProfile.Solution.Folder)) == false) { byte[] obj = Properties.Resources.GingerDataSource; System.IO.FileStream fs = new System.IO.FileStream(mDSDetails.FileFullPath.Replace("~", WorkSpace.UserProfile.Solution.Folder), System.IO.FileMode.Create, System.IO.FileAccess.Write); fs.Write(obj, 0, obj.Count()); fs.Close(); fs.Dispose(); } mTargetFolder.AddRepositoryItem(mDSDetails); _pageGenericWin.Close(); }
private void SendSelected(object sender, RoutedEventArgs e) { if (mAddActivityHandler != null) { if (sender is ucGrid) { mAddActivityHandler(sender, e); } else { mAddActivityHandler(xActivitiesRepositoryGrid, e); } } _pageGenericWin.Close(); }
//On Click of Save Button private void SaveBusinessFlowButton_Button_Click(object sender, RoutedEventArgs e) { if (BusinessFlowNameTextBox.Text.Trim().Length == 0) { Reporter.ToUser(eUserMsgKey.StaticWarnMessage, (GingerDicser.GetTermResValue(eTermResKey.BusinessFlow) + " name cannot be empty", "QTP to Ginger Converter", Amdocs.Ginger.Common.eUserMsgOption.OK)); return; } mBusinessFlow.Name = BusinessFlowNameTextBox.Text; WorkSpace.Instance.SolutionRepository.AddRepositoryItem(mBusinessFlow); //TODO: open the new BF in Automate tab + make sure it is added to the tree Reporter.ToStatus(eStatusMsgKey.ScriptImported_RefreshSolution); _pageGenericWin.Close(); }
private void OKButton_Click(object sender, RoutedEventArgs e) { //validate details if (DSColumnName.Text.Trim() == string.Empty) { Reporter.ToUser(eUserMsgKeys.MissingNewColumn, "name"); return; } if (DSColumnName.Text.ToLower() == "no" || DSColumnName.Text.ToLower() == "key") { Reporter.ToUser(eUserMsgKeys.InvalidColumnName); return; } okClicked = true; _pageGenericWin.Close(); }
private void CloseWindow() { if (mCheckInWasDone) { //TODO: remove sol refresh afetr all RIs moved to new repo and using new tree item App.MainWindow.RefreshSolutionPage(SolutionExplorerPage.eRefreshSolutionType.InitAllPage, null); } // Callback is used in new tree items to refresh the relevant tree if (CallBackOnClose != null) { CallBackOnClose.Invoke(); } genWin.Close(); }
private void Save(object sender, RoutedEventArgs e) { ObservableList <ExternalItemFieldBase> tempItemList = new ObservableList <ExternalItemFieldBase>(); foreach (ExternalItemFieldBase field in mItemsFields.Where(x => x.ToUpdate == true).ToList()) { tempItemList.Add(field); } App.UserProfile.Solution.ExternalItemsFields = tempItemList; Reporter.ToGingerHelper(eGingerHelperMsgKey.SaveItem, null, App.UserProfile.Solution.GetNameForFileName(), "item"); App.UserProfile.Solution.Save(); Reporter.CloseGingerHelper(); genWin.Close(); }
private void okBtn_Click(object sender, RoutedEventArgs e) { if (grdActivities.Grid.SelectedItems.Count == 0) { Reporter.ToUser(eUserMsgKeys.NoItemWasSelected); return; } //Add selected activities to group foreach (Activity act in grdActivities.Grid.SelectedItems) { mActivitiesGroup.AddActivityToGroup(act); } _pageGenericWin.Close(); }
private void AddVariable() { VariableBase newVar = (VariableBase)((VariableBase)VariablesGrid.CurrentItem).CreateCopy(); if (mVariablesParentObj != null) { switch (mVariablesLevel) { case eVariablesLevel.Solution: ((Solution)mVariablesParentObj).AddVariable(newVar); break; case eVariablesLevel.BusinessFlow: ((BusinessFlow)mVariablesParentObj).AddVariable(newVar); break; case eVariablesLevel.Activity: ((Activity)mVariablesParentObj).AddVariable(newVar); break; } } else { return; } VariableEditPage varEditPage = new VariableEditPage(newVar, mContext); _pageGenericWin.Close(); varEditPage.ShowAsWindow(eWindowShowStyle.Dialog); //make sure name is unique switch (mVariablesLevel) { case eVariablesLevel.Solution: ((Solution)mVariablesParentObj).SetUniqueVariableName(newVar); break; case eVariablesLevel.BusinessFlow: ((BusinessFlow)mVariablesParentObj).SetUniqueVariableName(newVar); break; case eVariablesLevel.Activity: ((Activity)mVariablesParentObj).SetUniqueVariableName(newVar); break; } }
private void OkButton_Click(object sender, RoutedEventArgs e) { ValueExpression mVE = new ValueExpression(App.RunsetExecutor.RunsetExecutionEnvironment, null, WorkSpace.Instance.SolutionRepository.GetAllRepositoryItems <DataSourceBase>(), false, "", false); string extraInformationCalculated = string.Empty; mVE.Value = mEmailAttachment.ExtraInformation; extraInformationCalculated = mVE.ValueCalculated; if ((bool)UseAlternativeHTMLReportFolderCbx.IsChecked) { if ((extraInformationCalculated == null) || (extraInformationCalculated.Length < 3)) { Reporter.ToUser(eUserMsgKey.FolderNameTextBoxIsEmpty); return; } else if (extraInformationCalculated.Length > 100) { Reporter.ToUser(eUserMsgKey.FolderNamesAreTooLong); return; } else { if (!Directory.Exists(extraInformationCalculated)) { Reporter.ToUser(eUserMsgKey.FolderNotExistOrNotAvailible); return; } else { if (!HasWritePermission(extraInformationCalculated)) { Reporter.ToUser(eUserMsgKey.UserHaveNoWritePermission); // return; } } } } if (mEmailAttachment != null) { mEmailAttachment.Name = DefaultTemplatePickerCbx.Text; mEmailAttachment.IsLinkEnabled = IsLinkEnabled; } _pageGenericWin.Close(); }
private string Import() { string SelectedFileName = System.IO.Path.GetFileName(FileName.FilePathTextBox.Text); string targetFile = System.IO.Path.Combine(mFolder, SelectedFileName); if (targetFile == FileName.FilePathTextBox.Text) { Reporter.ToUser(eUserMsgKey.NotifyFileSelectedFromTheSolution, targetFile); return(String.Empty); } File.Copy(FileName.FilePathTextBox.Text, targetFile); Reporter.ToUser(eUserMsgKey.FileImportedSuccessfully, targetFile); if (genWin != null) { genWin.Close(); } return(targetFile); }
private string Import() { // Copy the feature file to local docs string FeatureFolder = App.UserProfile.Solution.ContainingFolderFullPath + @"\Documents\Features\"; if (mFolder != "Business Flows" && mContext == eImportGherkinFileContext.BusinessFlowFolder) { FeatureFolder = FeatureFolder + mFolder + "\\"; } else if (mFolder != "Documents" && mFolder != "Features" && mContext == eImportGherkinFileContext.DocumentsFolder) { FeatureFolder = FeatureFolder + mFolder + "\\"; } if (!Directory.Exists(FeatureFolder)) { Directory.CreateDirectory(FeatureFolder); } string FileName = System.IO.Path.GetFileName(FetaureFileName); string targetFile = Path.Combine(FeatureFolder, FileName); if (targetFile == FetaureFileName) { Reporter.ToUser(eUserMsgKeys.GherkinNotifyFeatureFileSelectedFromTheSolution, targetFile); return(String.Empty); } // TODO: make the check earlier in wizard !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Remove if (File.Exists(targetFile)) { Reporter.ToUser(eUserMsgKeys.GherkinNotifyFeatureFileExists, targetFile); return(String.Empty); } File.Copy(FetaureFileName, targetFile); Reporter.ToUser(eUserMsgKeys.GherkinFeatureFileImportedSuccessfully, targetFile); if (genWin != null) { genWin.Close(); } return(targetFile); }
private void OKButton_Click(object sender, RoutedEventArgs e) { //validate details if (ExcelFilePath.ValueTextBox.Text.Trim() == string.Empty) { Reporter.ToUser(eUserMsgKey.MissingExcelDetails); return; } if (!ExcelFilePath.ValueTextBox.Text.ToLower().EndsWith(".xlsx")) { Reporter.ToUser(eUserMsgKey.InvalidExcelDetails); return; } //else if (OutSheetName.Text.IndexOf(" ") > 0) { Reporter.ToUser(eUserMsgKey.InValidExportSheetDetails); return; } okClicked = true; // WorkSpace.UserProfile.Solution.Agents.Add(mNewAgent); _pageGenericWin.Close(); }
private void OKButton_Click(object sender, RoutedEventArgs e) { //validate details if (TableName.Text.Trim() == string.Empty) { Reporter.ToUser(eUserMsgKey.MissingNewTableDetails, "name"); return; } else if (TableName.Text.IndexOf(" ") > 0) { Reporter.ToUser(eUserMsgKey.InvalidTableDetails); return; } else if (DSTableTypeComboBox.SelectedItem == null) { Reporter.ToUser(eUserMsgKey.MissingNewTableDetails, "Type"); return; } okClicked = true; _pageGenericWin.Close(); }
private void OKButton_Click(object sender, RoutedEventArgs e) { xOptionalValuesGrid.Grid.CommitEdit(DataGridEditingUnit.Row, true); //remove empty rows for (int i = 0; i < xOptionalValuesGrid.Grid.Items.Count; i++) { SolutionCategoryValue cat = (SolutionCategoryValue)xOptionalValuesGrid.Grid.Items[i]; if (string.IsNullOrEmpty(cat.Value)) { mSolutionCategory.CategoryOptionalValues.Remove(cat); i--; } } xOptionalValuesGrid.Grid.CommitEdit(DataGridEditingUnit.Row, true); mWin.Close(); mSolutionCategory.PropertyChangedEventHandler(); }
private void Save(object sender, RoutedEventArgs e) { if (mALMDefectProfiles.Where(x => x.IsDefault == true).ToList().Count == 0) { Reporter.ToUser(eUserMsgKeys.NoDefaultDefectProfileSelected); return; } foreach (ALMDefectProfile _ALMDefectProfile in mALMDefectProfiles.Where(x => x.ToUpdate == true).ToList()) { ExternalItemFieldBase notPopulatedMandatoryField = _ALMDefectProfile.ALMDefectProfileFields.Where(x => x.Mandatory == true && x.ExternalID != "description" && x.ExternalID != "name" && x.ExternalID != "Summary" && (x.SelectedValue == null || x.SelectedValue == string.Empty)).FirstOrDefault(); if (notPopulatedMandatoryField != null) { Reporter.ToUser(eUserMsgKeys.MissedMandatotryFields, notPopulatedMandatoryField.Name, _ALMDefectProfile.Name); return; } ExternalItemFieldBase wrongSelectedField = _ALMDefectProfile.ALMDefectProfileFields.Where(x => x.SelectedValue != null && x.SelectedValue != string.Empty && x.PossibleValues.Count > 0 && (!x.PossibleValues.Contains(x.SelectedValue))).FirstOrDefault(); if (wrongSelectedField != null) { Reporter.ToUser(eUserMsgKeys.WrongValueSelectedFromTheList, wrongSelectedField.Name, _ALMDefectProfile.Name); return; } } foreach (ALMDefectProfile _ALMDefectProfile in mALMDefectProfiles.Where(x => x.ToUpdate == true).ToList()) { Reporter.ToGingerHelper(eGingerHelperMsgKey.SaveItem, null, _ALMDefectProfile.GetNameForFileName(), "item"); if ((_ALMDefectProfile.ContainingFolder == null) || (_ALMDefectProfile.ContainingFolder == string.Empty)) { _ALMDefectProfile.ContainingFolder = App.UserProfile.Solution.Folder + _ALMDefectProfile.ObjFolderName; _ALMDefectProfile.FilePath = _ALMDefectProfile.ContainingFolder + @"\" + _ALMDefectProfile.FilePath; } WorkSpace.Instance.SolutionRepository.SaveRepositoryItem(_ALMDefectProfile); Reporter.CloseGingerHelper(); } genWin.Close(); }
private void GeneratBFButton_Click(object sender, RoutedEventArgs e) { if (!isBFexists) { BusinessFlowsFolderTreeItem bfsFolder = new BusinessFlowsFolderTreeItem(WorkSpace.Instance.SolutionRepository.GetRepositoryItemRootFolder <BusinessFlow>(), eBusinessFlowsTreeViewMode.ReadOnly); bfsFolder.IsGingerDefualtFolder = true; SingleItemTreeViewSelectionPage mTargetFolderSelectionPage = new SingleItemTreeViewSelectionPage(GingerDicser.GetTermResValue(eTermResKey.BusinessFlows), eImageType.BusinessFlow, bfsFolder, SingleItemTreeViewSelectionPage.eItemSelectionType.Folder, true); List <object> selectedBfs = mTargetFolderSelectionPage.ShowAsWindow(); if (selectedBfs != null) { targetBFFolder = (RepositoryFolder <BusinessFlow>)((ITreeViewItem)selectedBfs[0]).NodeObject(); } CreateNewBF(FeatureName); CreateActivities(); WorkSpace.Instance.SolutionRepository.SaveRepositoryItem(mBizFlow); if (genWin != null) { genWin.Close(); } UpdateBFButton.Content = "Update " + GingerDicser.GetTermResValue(eTermResKey.BusinessFlow); isBFexists = true; Reporter.ToUser(eUserMsgKey.BusinessFlowUpdate, mBizFlow.ContainingFolder + "\\" + mBizFlow.Name, "Created"); } else { UpdateBFButton_Click(); Reporter.ToUser(eUserMsgKey.BusinessFlowUpdate, mBizFlow.ContainingFolder + "\\" + mBizFlow.Name, "Updated"); } GherkinTextEditor.SetContentEditorTitleLabel(Path.GetFileName(GherkinTextEditor.FileName) + " , Target Business Flow: " + mBizFlow.ContainingFolder + "\\" + mBizFlow.Name, (Style)TryFindResource("@ucGridTitleLightStyle")); if (App.BusinessFlow == mBizFlow) { App.BusinessFlow = mBizFlow; App.BusinessFlow.SaveBackup(); } }
private void MapSelectedAgent() { if (grdPossibleAgents.Grid.SelectedItem == null) { Reporter.ToUser(eUserMsgKey.NoItemWasSelected); return; } else { Agent selectedAgent = (Agent)grdPossibleAgents.Grid.SelectedItem; mApplicationAgent.Agent = selectedAgent; //save last used agent on the Solution Target Applications ApplicationPlatform ap = WorkSpace.Instance.Solution.ApplicationPlatforms.Where(x => x.AppName == mApplicationAgent.AppName).FirstOrDefault(); if (ap != null) { ap.LastMappedAgentName = selectedAgent.Name; } } _pageGenericWin.Close(); }
private void OKButton_Click(object sender, RoutedEventArgs e) { //validate details if (AgentNameTextBox.Text.Trim() == string.Empty) { Reporter.ToUser(eUserMsgKeys.MissingNewAgentDetails, "name"); return; } else if (AgentNameTextBox.Text.Trim().IndexOfAny(new char[] { '/', '\\', '*', ':', '?', '"', '<', '>', '|' }) != -1) { Reporter.ToUser(eUserMsgKeys.InvalidCharactersWarning, string.Empty); return; } else if (PlatformTypeComboBox.SelectedItem == null) { Reporter.ToUser(eUserMsgKeys.MissingNewAgentDetails, "Platform type"); return; } else if (DriverTypeComboBox.SelectedItem == null) { Reporter.ToUser(eUserMsgKeys.MissingNewAgentDetails, "Driver type"); return; } okClicked = true; _pageGenericWin.Close(); }
private void GeneratBFButton_Click(object sender, RoutedEventArgs e) { if (!isBFexists) { CreateNewBF(FeatureName); CreateActivities(); mBizFlow.Save(); if (genWin != null) { genWin.Close(); } UpdateBFButton.Content = "Update " + GingerDicser.GetTermResValue(eTermResKey.BusinessFlow); isBFexists = true; Reporter.ToUser(eUserMsgKeys.BusinessFlowUpdate, mBizFlow.ContainingFolder.Replace("BusinessFlows\\", "") + mBizFlow.Name, "Created"); } else { UpdateBFButton_Click(); Reporter.ToUser(eUserMsgKeys.BusinessFlowUpdate, mBizFlow.ContainingFolder.Replace("BusinessFlows\\", "") + mBizFlow.Name, "Updated"); } App.MainWindow.RefreshSolutionPage(SolutionExplorerPage.eRefreshSolutionType.RefreshTreeFolder, typeof(BusinessFlowsFolderTreeItem)); }
private void OKButton_Click(object sender, RoutedEventArgs e) { //validate details if (ExcelFilePath.ValueTextBox.Text.Trim() == string.Empty) { Reporter.ToUser(eUserMsgKey.MissingExcelDetails); return; } if (!ExcelFilePath.ValueTextBox.Text.ToLower().EndsWith(".xlsx")) { Reporter.ToUser(eUserMsgKey.InvalidExcelDetails); return; } okClicked = true; mExcelConfig.ExcelPath = ExcelFilePath.ValueTextBox.Text; mExcelConfig.ExcelSheetName = xExportSheetName.ValueTextBox.Text; if (xRdoByCustomExport.IsChecked == true) { CreateQueryBasedWhereCondition(); if (mActDSTableElement != null) { mExcelConfig.ExportQueryValue = mExcelConfig.CreateQueryWithWhereList(mActDSTableElement.ExcelConfig.ColumnList.ToList().FindAll(x => x.IsSelected), mExcelConfig.WhereConditionStringList, mDataTable.TableName, mDataSourceTable.DSC.DSType); } else if (mDataSourceTable != null) { mExcelConfig.ExportQueryValue = mExcelConfig.CreateQueryWithWhereList(mColumnList.ToList().FindAll(x => x.IsSelected), mExcelConfig.WhereConditionStringList, mDataTable.TableName, mDataSourceTable.DSC.DSType); } } else { mExcelConfig.ExportQueryValue = xExcelExportQuery.ValueTextBox.Text; } _pageGenericWin.Close(); }
private void OKButton_Click(object sender, RoutedEventArgs e) { OptionalValuesGrid.Grid.CommitEdit(DataGridEditingUnit.Row, true); for (int i = 0; i < OptionalValuesGrid.Grid.Items.Count; i++) { OptionalValue OV = (OptionalValue)OptionalValuesGrid.Grid.Items[i]; if (string.IsNullOrEmpty(OV.Value)) { if (OV.IsDefault) { ((OptionalValue)(OptionalValuesGrid.Grid.Items[0])).IsDefault = true; } mAMDP.OptionalValuesList.Remove(OV); i--; } } OptionalValuesGrid.Grid.CommitEdit(DataGridEditingUnit.Row, true); mWin.Close(); mAMDP.OnPropertyChanged(nameof(AppModelParameter.OptionalValuesString)); }
private async void GetProject_Click(object sender, RoutedEventArgs e) { try { xProcessingIcon.Visibility = Visibility.Visible; if (SourceControlIntegration.BusyInProcessWhileDownloading) { Reporter.ToUser(eUserMsgKey.StaticInfoMessage, "Please wait for current process to end."); return; } SourceControlIntegration.BusyInProcessWhileDownloading = true; if (WorkSpace.Instance.UserProfile.SourceControlLocalFolder == string.Empty) { Reporter.ToUser(eUserMsgKey.SourceControlConnMissingLocalFolderInput); } SolutionInfo sol = (SolutionInfo)SolutionsGrid.grdMain.SelectedItem; if (sol == null) { Reporter.ToUser(eUserMsgKey.AskToSelectSolution); return; } string ProjectURI = string.Empty; if (WorkSpace.Instance.UserProfile.SourceControlType == SourceControlBase.eSourceControlType.SVN) { ProjectURI = WorkSpace.Instance.UserProfile.SourceControlURL.StartsWith("SVN", StringComparison.CurrentCultureIgnoreCase) ? sol.SourceControlLocation : WorkSpace.Instance.UserProfile.SourceControlURL + sol.SourceControlLocation; } else { ProjectURI = WorkSpace.Instance.UserProfile.SourceControlURL; } bool getProjectResult = await Task.Run(() => SourceControlIntegration.GetProject(mSourceControl, sol.LocalFolder, ProjectURI)); SourceControlIntegration.BusyInProcessWhileDownloading = false; GetProjetList(); Mouse.OverrideCursor = null; if (getProjectResult && (Reporter.ToUser(eUserMsgKey.DownloadedSolutionFromSourceControl, sol.LocalFolder) == Amdocs.Ginger.Common.eUserMsgSelection.Yes)) { OpenSolution(sol.LocalFolder, ProjectURI); if (WorkSpace.Instance.Solution != null && WorkSpace.Instance.Solution.SourceControl != null) { if (WorkSpace.Instance.Solution.SourceControl.SourceControlUser != WorkSpace.Instance.UserProfile.SourceControlUser || WorkSpace.Instance.Solution.SourceControl.SourceControlPass != WorkSpace.Instance.UserProfile.SourceControlPass) { WorkSpace.Instance.Solution.SourceControl.SourceControlUser = WorkSpace.Instance.UserProfile.SourceControlUser; WorkSpace.Instance.Solution.SourceControl.SourceControlPass = WorkSpace.Instance.UserProfile.SourceControlPass; WorkSpace.Instance.Solution.SourceControl.Disconnect(); } } genWin.Close(); } } finally { SourceControlIntegration.BusyInProcessWhileDownloading = false; xProcessingIcon.Visibility = Visibility.Collapsed; } }