private void Init() { //ConnecitonDetailsPage Binding if (WorkSpace.Instance.UserProfile.SourceControlURL == null) { WorkSpace.Instance.UserProfile.SourceControlURL = ""; } SourceControlClassComboBox.Init(WorkSpace.Instance.UserProfile, nameof(UserProfile.SourceControlType), typeof(SourceControlBase.eSourceControlType), SourceControlClassComboBox_SelectionChanged); SourceControlClassComboBox.ComboBox.Items.RemoveAt(0);//removing the NONE option from user selection //ProjectPage Binding. GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(SourceControlLocalFolderTextBox, TextBox.TextProperty, mSourceControl, nameof(SourceControlBase.SourceControlLocalFolder)); if (String.IsNullOrEmpty(WorkSpace.Instance.UserProfile.SourceControlLocalFolder)) { // Default local solutions folder mSourceControl.SourceControlLocalFolder = @"C:\GingerSourceControl\Solutions\"; } GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(ConfigureProxyCheckBox, CheckBox.IsCheckedProperty, mSourceControl, nameof(SourceControlBase.SourceControlConfigureProxy)); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(ProxyAddressTextBox, TextBox.TextProperty, mSourceControl, nameof(SourceControlBase.SourceControlProxyAddress)); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(ProxyPortTextBox, TextBox.TextProperty, mSourceControl, nameof(SourceControlBase.SourceControlProxyPort)); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(txtConnectionTimeout, TextBox.TextProperty, mSourceControl, nameof(SourceControlBase.SourceControlTimeout)); SolutionsGrid.btnRefresh.AddHandler(Button.ClickEvent, new RoutedEventHandler(RefreshGrid)); if (mSourceControl.GetSourceControlType == SourceControlBase.eSourceControlType.GIT) { xBranchesCombo.ItemsSource = SourceControlIntegration.GetBranches(mSourceControl); } GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(xBranchesCombo, ComboBox.TextProperty, mSourceControl, nameof(SourceControlBase.SourceControlBranch)); }
private void Init() { //ConnecitonDetailsPage Binding if (App.UserProfile.SourceControlURL == null) { App.UserProfile.SourceControlURL = ""; } SourceControlClassComboBox.Init(App.UserProfile, UserProfile.Fields.SourceControlType, typeof(SourceControlBase.eSourceControlType), false, SourceControlClassComboBox_SelectionChanged); SourceControlClassComboBox.ComboBox.Items.RemoveAt(0);//removing the NONE option from user selection //ProjectPage Binding. App.ObjFieldBinding(SourceControlLocalFolderTextBox, TextBox.TextProperty, mSourceControl, SourceControlBase.Fields.SourceControlLocalFolder); if (String.IsNullOrEmpty(App.UserProfile.SourceControlLocalFolder)) { // Default local solutions folder mSourceControl.SourceControlLocalFolder = @"C:\GingerSourceControl\Solutions\"; } App.ObjFieldBinding(ConfigureProxyCheckBox, CheckBox.IsCheckedProperty, mSourceControl, SourceControlBase.Fields.SourceControlConfigureProxy); App.ObjFieldBinding(ProxyAddressTextBox, TextBox.TextProperty, mSourceControl, SourceControlBase.Fields.SourceControlProxyAddress); if (String.IsNullOrEmpty(App.UserProfile.SolutionSourceControlProxyAddress)) { mSourceControl.SourceControlProxyAddress = @"http://genproxy.amdocs.com"; } App.ObjFieldBinding(ProxyPortTextBox, TextBox.TextProperty, mSourceControl, SourceControlBase.Fields.SourceControlProxyPort); if (String.IsNullOrEmpty(App.UserProfile.SolutionSourceControlProxyPort)) { mSourceControl.SourceControlProxyPort = @"8080"; } SolutionsGrid.btnRefresh.AddHandler(Button.ClickEvent, new RoutedEventHandler(RefreshGrid)); }