public WindowSelectFolderAndText( CommonConfiguration commonConfig , ConnectionData connectionData , string windowTitle , string labelTitle , Func <string, bool> checker = null , string message = null ) { InitializeComponent(); this.Title = windowTitle; this._checker = checker; this._message = message; this._commonConfig = commonConfig; BindingOperations.EnableCollectionSynchronization(connectionData.ConnectionConfiguration.Connections, sysObjectConnections); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); LoadConfigs(commonConfig); cmBConnection.ItemsSource = connectionData.ConnectionConfiguration.Connections; cmBConnection.SelectedItem = connectionData; lblText.Content = labelTitle; txtBText.Focus(); }
public WindowEntityBulkTransfer( IWriteToOutput outputWindow , IOrganizationServiceExtented service , CommonConfiguration commonConfig , EntityMetadata entityMetadata , IEnumerable <Entity> entityCollection ) { IncreaseInit(); InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this.Name = string.Format("WindowEntityBulkTransfer_{0}", entityMetadata.LogicalName); _cacheEntityMetadata.Add(entityMetadata.LogicalName, entityMetadata); this._iWriteToOutput = outputWindow; this._service = service; this._commonConfig = commonConfig; this._entityMetadata = entityMetadata; this._entityCollection = new ReadOnlyCollection <Entity>(entityCollection.Where(i => i.Id != Guid.Empty).Distinct().ToList()); this.tSSLblConnectionName.Content = this._service.ConnectionData.Name; DecreaseInit(); this._attributeChecker = a => a.IsValidForUpdate.GetValueOrDefault(); RetrieveEntityInformation(); }
public WindowPluginConfigurationPluginTree( IWriteToOutput iWriteToOutput , ConnectionData connectionData , CommonConfiguration commonConfig , string filePath ) { InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._iWriteToOutput = iWriteToOutput; this._commonConfig = commonConfig; BindingOperations.EnableCollectionSynchronization(connectionData.ConnectionConfiguration.Connections, sysObjectConnections); InitializeComponent(); LoadFromConfig(); LoadImages(); LoadConfiguration(); txtBEntityName.SelectionLength = 0; txtBEntityName.SelectionStart = txtBEntityName.Text.Length; txtBEntityName.Focus(); cmBCurrentConnection.ItemsSource = connectionData.ConnectionConfiguration.Connections; cmBCurrentConnection.SelectedItem = connectionData; if (!string.IsNullOrEmpty(filePath)) { LoadPluginConfiguration(filePath); } }
public WindowOrganizationComparerOperationMultiSelect() { this.IncreaseInit(); InitializeComponent(); lstVwAttributes.ItemsSource = _sourceDataGrid; InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); List <OrganizationComparerOperation> allOperations = Enum.GetValues(typeof(OrganizationComparerOperation)).OfType <OrganizationComparerOperation>().ToList(); foreach (var operation in allOperations) { var item = new OrganizationComparerOperationSelectItem(operation, EnumDescriptionTypeConverter.GetEnumNameByDescriptionAttribute(operation)); _source.Add(item); } foreach (var item in _source) { _sourceDataGrid.Add(item); } this.DecreaseInit(); txtBFilter.SelectionStart = txtBFilter.Text.Length; txtBFilter.SelectionLength = 0; txtBFilter.Focus(); }
public WindowEntitySelect( IWriteToOutput outputWindow , ConnectionData connectionData , string entityName , IEnumerable <DataGridColumn> columns ) { InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this.Name = string.Format("WindowEntitySelect_{0}", entityName); lstVwEntities.Name = string.Format("lstVwEntities{0}", entityName); this._entityName = entityName; this._connectionData = connectionData; this._iWriteToOutput = outputWindow; foreach (var column in columns) { lstVwEntities.Columns.Add(column); } this.tSSLblConnectionName.Content = this._connectionData.Name; txtBFilterEnitity.SelectionStart = txtBFilterEnitity.Text.Length; txtBFilterEnitity.SelectionLength = 0; txtBFilterEnitity.Focus(); }
public WindowSdkMessageProcessingStepImage( IWriteToOutput iWriteToOutput , IOrganizationServiceExtented service , SdkMessageProcessingStepImage image , string entityName , string messageName ) { this.IncreaseInit(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._iWriteToOutput = iWriteToOutput; this._entityName = entityName; this._messageName = messageName; this._service = service; this.Image = image; InitializeComponent(); tSSLblConnectionName.Content = _service.ConnectionData.Name; LoadEntityImageProperties(); this.DecreaseInit(); txtBName.Focus(); }
public WindowPluginConfigurationPluginType( IWriteToOutput iWriteToOutput , CommonConfiguration commonConfig , string filePath ) { InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._iWriteToOutput = iWriteToOutput; this._commonConfig = commonConfig; LoadFromConfig(); txtBFilter.SelectionLength = 0; txtBFilter.SelectionStart = txtBFilter.Text.Length; txtBFilter.Focus(); this._itemsSource = new ObservableCollection <PluginTypeFullInfo>(); this.lstVwPluginTypes.ItemsSource = _itemsSource; if (!string.IsNullOrEmpty(filePath)) { LoadPluginConfiguration(filePath); } }
public Show(object tag) { InitializeComponent(); UnderImage.Background = new ImageBrush() { ImageSource = new Image() { Source = new BitmapImage( new Uri("pack://application:,,,/Чтение;component/Resources/over_place.png")) }.Source }; BackButton.Content = new Image() { Source = new BitmapImage(new Uri("pack://application:,,,/Чтение;component/Resources/Arrows/back.png")) }; TempPlace = new ImageBrush() { ImageSource = new Image() { Source = new BitmapImage( new Uri("pack://application:,,,/Чтение;component/Resources/place.jpg")) }.Source }; ImagePlace.Background = TempPlace; CurrentTable = new WordsTable(); ForWords.Child = CurrentTable; InputLanguageManager.SetInputLanguage(WordInput, CultureInfo.CreateSpecificCulture("ru")); Loaded += (sender, e) => Update((int)tag); }
public WindowCrmConnectionCard(IWriteToOutput iWriteToOutput, ConnectionData connectionData, ObservableCollection <ConnectionUserData> listUsers) { InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this.ConnectionData = connectionData; this._iWriteToOutput = iWriteToOutput; this._listUsers = listUsers; if (this.ConnectionData == null) { this.ConnectionData = new ConnectionData(); } if (this.ConnectionData.ConnectionId == Guid.Empty) { this.ConnectionData.ConnectionId = Guid.NewGuid(); } RefreshUserList(); LoadConnectionData(connectionData); txtBName.SelectionLength = 0; txtBName.SelectionStart = txtBName.Text.Length; txtBName.Focus(); }
public WindowSelectFolderForExport(ConnectionData connectionData , string folder , FileAction fileAction ) { InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); txtBFolder.Text = folder; cmBFileAction.SelectedItem = fileAction; if (connectionData != null) { BindingOperations.EnableCollectionSynchronization(connectionData.ConnectionConfiguration.Connections, sysObjectConnections); cmBConnection.ItemsSource = connectionData.ConnectionConfiguration.Connections; cmBConnection.SelectedItem = connectionData; } else { lblConnection.IsEnabled = cmBConnection.IsEnabled = false; lblConnection.Visibility = cmBConnection.Visibility = Visibility.Collapsed; } txtBFolder.Focus(); }
public WindowCrmConnectionList(IWriteToOutput iWriteToOutput, ConnectionConfiguration crmConfig, bool currentConnectionChoosing = false) { this._crmConfig = crmConfig; this._iWriteToOutput = iWriteToOutput; this._currentConnectionChoosing = currentConnectionChoosing; BindingOperations.EnableCollectionSynchronization(this._crmConfig.Connections, sysObjectConnections); BindingOperations.EnableCollectionSynchronization(this._crmConfig.ArchiveConnections, sysObjectArchiveConnections); BindingOperations.EnableCollectionSynchronization(this._crmConfig.Users, sysObjectUsers); InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); var commonConfig = CommonConfiguration.Get(); WindowCrmConnectionHandler.InitializeConnectionMenuItems(miConnection, this._iWriteToOutput, commonConfig, GetSelectedConnection); lstVwConnections.ItemsSource = this._crmConfig.Connections; lstVwArchiveConnections.ItemsSource = this._crmConfig.ArchiveConnections; lstVwUsers.ItemsSource = this._crmConfig.Users; lstVwOrganizations.ItemsSource = this._itemsSource = new ObservableCollection <OrganizationDetailViewItem>(); UpdateCurrentConnectionInfo(); LoadConfiguration(); UpdateButtonsConnection(); UpdateButtonsConnectionArchive(); UpdateButtonsUsers(); UpdateButtonsDiscoveryOrganization(); }
public WindowSdkMessageProcessingStep( IWriteToOutput iWriteToOutput , IOrganizationServiceExtented service , List <SdkMessageFilter> filters , SdkMessageProcessingStep step ) { this.IncreaseInit(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._iWriteToOutput = iWriteToOutput; this._service = service; this._filters = filters; this.Step = step; InitializeComponent(); LoadFromConfig(); tSSLblConnectionName.Content = _service.ConnectionData.Name; FillComboBoxMessages(); LoadEntityStepProperties(); this.DecreaseInit(); FocusOnComboBoxTextBox(cmBMessageName); }
private void inputManager(object sender, RoutedEventArgs e) { // <Snippet3> InputLanguageManager.SetInputLanguage(tb1, CultureInfo.CreateSpecificCulture("fr")); tb1.Text = "Current Input Language is " + InputLanguageManager.Current.CurrentInputLanguage.ToString(); // </Snippet3> }
public WindowSolutionSelect( IWriteToOutput outputWindow , IOrganizationServiceExtented service ) { InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._service = service; this._iWriteToOutput = outputWindow; this.tSSLblConnectionName.Content = this._service.ConnectionData.Name; BindingOperations.EnableCollectionSynchronization(service.ConnectionData.LastSelectedSolutionsUniqueName, _syncObject); this._itemsSource = new ObservableCollection <EntityViewItem>(); this.lstVwSolutions.ItemsSource = _itemsSource; cmBFilter.DataContext = this._service.ConnectionData; FocusOnComboBoxTextBox(cmBFilter); if (_service != null) { ShowExistingSolutions(this._service.ConnectionData.LastSelectedSolutionsUniqueName.FirstOrDefault()); } }
public MainWindow() { InitializeComponent(); Paths = new ObservableCollection <string>(new string[4]); DataContext = this; InputLanguageManager.SetInputLanguage(this, System.Globalization.CultureInfo.CreateSpecificCulture("en")); }
public WindowStatusSelect( IWriteToOutput outputWindow , IOrganizationServiceExtented service , CommonConfiguration commonConfig , string entityName ) { IncreaseInit(); InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this.Name = string.Format("WindowStatusSelect_{0}", entityName); lstVwStatusCodes.Name = string.Format("lstVwStatusCodes{0}", entityName); this._iWriteToOutput = outputWindow; this._service = service; this._commonConfig = commonConfig; this._entityName = entityName; this.tSSLblConnectionName.Content = this._service.ConnectionData.Name; lstVwStatusCodes.ItemsSource = _itemsSource; DecreaseInit(); txtBFilter.SelectionStart = txtBFilter.Text.Length; txtBFilter.SelectionLength = 0; txtBFilter.Focus(); RetrieveEntityInformation(); }
public WindowExplorerCustomControl( IWriteToOutput iWriteToOutput , IOrganizationServiceExtented service , CommonConfiguration commonConfig , string filter ) { this.IncreaseInit(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._iWriteToOutput = iWriteToOutput; this._commonConfig = commonConfig; _connectionCache[service.ConnectionData.ConnectionId] = service; BindingOperations.EnableCollectionSynchronization(service.ConnectionData.ConnectionConfiguration.Connections, sysObjectConnections); InitializeComponent(); var child = new ExportXmlOptionsControl(_commonConfig, _xmlOptions); child.CloseClicked += Child_CloseClicked; this._optionsPopup = new Popup { Child = child, PlacementTarget = toolBarHeader, Placement = PlacementMode.Bottom, StaysOpen = false, Focusable = true, }; LoadFromConfig(); if (!string.IsNullOrEmpty(filter)) { txtBFilter.Text = filter; } txtBFilter.SelectionLength = 0; txtBFilter.SelectionStart = txtBFilter.Text.Length; txtBFilter.Focus(); this._itemsSource = new ObservableCollection <EntityViewItem>(); this.lstVwCustomControls.ItemsSource = _itemsSource; cmBCurrentConnection.ItemsSource = service.ConnectionData.ConnectionConfiguration.Connections; cmBCurrentConnection.SelectedItem = service.ConnectionData; this.DecreaseInit(); if (service != null) { ShowExistingCustomControls(); } }
public WindowTraceRecord() { InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); txtBDescription.Focus(); }
public WindowAttributeMultiSelect( IWriteToOutput outputWindow , IOrganizationServiceExtented service , EntityMetadata entityMetadata , string selectedAttributes ) { this.IncreaseInit(); InitializeComponent(); lstVwAttributes.ItemsSource = _sourceDataGrid; InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._iWriteToOutput = outputWindow; this._service = service; this._entityMetadata = entityMetadata; this.tSSLblConnectionName.Content = this._service.ConnectionData.Name; HashSet <string> selectedAttributesColl = new HashSet <string>(StringComparer.InvariantCultureIgnoreCase); if (!string.IsNullOrEmpty(selectedAttributes)) { var split = selectedAttributes.Split(','); foreach (var item in split) { selectedAttributesColl.Add(item); } } foreach (var attr in _entityMetadata.Attributes.Where(a => string.IsNullOrEmpty(a.AttributeOf)).OrderBy(a => a.LogicalName)) { var item = new AttributeSelectItem(attr) { IsChecked = selectedAttributesColl.Contains(attr.LogicalName), }; item.PropertyChanged += Item_PropertyChanged; _source.Add(item); } foreach (var item in _source.OrderBy(a => a.LogicalName)) { _sourceDataGrid.Add(item); } this.DecreaseInit(); UpdateSelectedAttributesText(); txtBFilter.SelectionStart = txtBFilter.Text.Length; txtBFilter.SelectionLength = 0; txtBFilter.Focus(); }
private void tbMeaning_GotFocus(object sender, RoutedEventArgs e) { CultureInfo currentCultureInfo; currentCultureInfo = new CultureInfo("uk-UA"); //TextBox tbMeaning = this.FindName("tbMeaning") as TextBox; //InputLanguageManager.SetInputLanguage(tbMeaning, currentCultureInfo); InputLanguageManager.SetInputLanguage(tbMeaning, currentCultureInfo); }
protected void SetInputLanguageEnglish() { CultureInfo cultureInfo = GetEnglishCultureInfo(); if (cultureInfo != null) { InputLanguageManager.SetInputLanguage(this, cultureInfo); } }
public PluginExercisesConfigure(SQLiteConnection db, ObservableCollection <ExerciseMap> words) { db_ = db; words_ = words; InitializeComponent(); TB_Add2.Focus(); List_Exercises.ItemsSource = words; InputLanguageManager.SetInputLanguage(TB_Add2, CultureInfo.CreateSpecificCulture("en-GB")); }
public WindowOrganizationComparerSiteMap( IWriteToOutput iWriteToOutput , CommonConfiguration commonConfig , ConnectionData connection1 , ConnectionData connection2 ) { this.IncreaseInit(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._iWriteToOutput = iWriteToOutput; this._commonConfig = commonConfig; BindingOperations.EnableCollectionSynchronization(connection1.ConnectionConfiguration.Connections, sysObjectConnections); InitializeComponent(); var child = new ExportXmlOptionsControl(_commonConfig, _xmlOptions); child.CloseClicked += Child_CloseClicked; this._optionsPopup = new Popup { Child = child, PlacementTarget = toolBarHeader, Placement = PlacementMode.Bottom, StaysOpen = false, Focusable = true, }; this.Resources["ConnectionName1"] = connection1.Name; this.Resources["ConnectionName2"] = connection2.Name; LoadFromConfig(); txtBFilter.SelectionLength = 0; txtBFilter.SelectionStart = txtBFilter.Text.Length; txtBFilter.Focus(); this._itemsSource = new ObservableCollection <EntityViewItem>(); this.lstVwSiteMaps.ItemsSource = _itemsSource; cmBConnection1.ItemsSource = connection1.ConnectionConfiguration.Connections; cmBConnection1.SelectedItem = connection1; cmBConnection2.ItemsSource = connection1.ConnectionConfiguration.Connections; cmBConnection2.SelectedItem = connection2; this.DecreaseInit(); ShowExistingSiteMaps(); }
private void tbWordActb_GotFocus(object sender, RoutedEventArgs e) { //cultureBeforeFocus = InputLanguageManager.Current.CurrentInputLanguage; CultureInfo currentCultureInfo; currentCultureInfo = new CultureInfo("en-US"); //WpfControls.Editors.AutoCompleteTextBox tbWord = this.FindName("tbWordActb") as WpfControls.Editors.AutoCompleteTextBox; //InputLanguageManager.SetInputLanguage(tbWord.Editor, currentCultureInfo); InputLanguageManager.SetInputLanguage(tbWordActb.Editor, currentCultureInfo); }
/// <summary> /// This checks if the last used input language isn't hebrew, and sets the current input language accordingly /// /// This is quite a complex code, that achieves just about the default behavior. It's here, since in the future we would like /// To handle cases were the window is hidden, and when it comes back from being hidden, the new input language is hebrew. /// This must be done programatically /// </summary> private void SearchTextBox_GotFocus(object sender, RoutedEventArgs e) { if ((previousLanguage != null) && !previousLanguage.DisplayName.Equals(hebrewLanguage.DisplayName)) { InputLanguageManager.SetInputLanguage(SearchTextBox, previousLanguage); } else { InputLanguageManager.SetInputLanguage(SearchTextBox, hebrewLanguage); } }
public WindowExportFormEvents(CommonConfiguration commonConfig) { InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._commonConfig = commonConfig; LoadConfigs(); txtBFileName.Focus(); }
public WindowFileActionByExtension(string extension, FileAction fileAction) { InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); txtBExtension.Text = extension; cmBFileAction.SelectedItem = fileAction; txtBExtension.Focus(); }
public WindowExplorerEntityMetadataOptions(IWriteToOutput iWriteToOutput, CommonConfiguration commonConfig, ConnectionData connectionData) { InitializeComponent(); options.BindCommonConfiguration(commonConfig); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._commonConfig = commonConfig; this._iWriteToOutput = iWriteToOutput; cmBCurrentConnection.ItemsSource = connectionData.ConnectionConfiguration.Connections; cmBCurrentConnection.SelectedItem = connectionData; }
public WindowSelectEntityReference( ConnectionData connectionData , IEnumerable <string> entityNames ) { InitializeComponent(); this._connectionData = connectionData; InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); cmBEntityName.Focus(); LoadEntityNames(entityNames); }
public WindowOrganizationComparerPluginAssembly( IWriteToOutput iWriteToOutput , CommonConfiguration commonConfig , ConnectionData connection1 , ConnectionData connection2 , string filter ) { this.IncreaseInit(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this._iWriteToOutput = iWriteToOutput; this._commonConfig = commonConfig; BindingOperations.EnableCollectionSynchronization(connection1.ConnectionConfiguration.Connections, sysObjectConnections); InitializeComponent(); this.Resources["ConnectionName1"] = connection1.Name; this.Resources["ConnectionName2"] = connection2.Name; LoadFromConfig(); if (!string.IsNullOrEmpty(filter)) { txtBFilter.Text = filter; } txtBFilter.SelectionLength = 0; txtBFilter.SelectionStart = txtBFilter.Text.Length; txtBFilter.Focus(); this._itemsSource = new ObservableCollection <EntityViewItem>(); this.lstVwPluginAssemblies.ItemsSource = _itemsSource; cmBConnection1.ItemsSource = connection1.ConnectionConfiguration.Connections; cmBConnection1.SelectedItem = connection1; cmBConnection2.ItemsSource = connection1.ConnectionConfiguration.Connections; cmBConnection2.SelectedItem = connection2; this.DecreaseInit(); ShowExistingPluginAssemblies(); }