public WindowEntityBulkEditor( IWriteToOutput iWriteToOutput , CommonConfiguration commonConfig , IOrganizationServiceExtented service , string entityName , IEnumerable <Guid> entityIds ) : base(iWriteToOutput, service) { IncreaseInit(); InitializeComponent(); SetInputLanguageEnglish(); this.Name = string.Format("WindowEntityBulkEditor_{0}", entityName); this._commonConfig = commonConfig; this._entityName = entityName; this._entityIds = new ReadOnlyCollection <Guid>(entityIds.Where(i => i != Guid.Empty).Distinct().ToList()); this.tSSLblConnectionName.Content = this._service.ConnectionData.Name; WindowEntityEditor.FillIgnoredAttributes(_entityName, _ignoredAttributes); FillExplorersMenuItems(); DecreaseInit(); txtBFilterAttribute.SelectionStart = txtBFilterAttribute.Text.Length; txtBFilterAttribute.SelectionLength = 0; txtBFilterAttribute.Focus(); this._attributeChecker = a => a.IsValidForUpdate.GetValueOrDefault() && !_ignoredAttributes.Contains(a.LogicalName); var task = RetrieveEntityInformation(); }
public WindowEntityBulkEditor( IWriteToOutput outputWindow , IOrganizationServiceExtented service , CommonConfiguration commonConfig , string entityName , IEnumerable <Guid> entityIds ) { IncreaseInit(); InitializeComponent(); InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US")); this.Name = string.Format("WindowEntityBulkEditor_{0}", entityName); this._iWriteToOutput = outputWindow; this._service = service; this._commonConfig = commonConfig; this._entityName = entityName; this._entityIds = new ReadOnlyCollection <Guid>(entityIds.Where(i => i != Guid.Empty).Distinct().ToList()); this.tSSLblConnectionName.Content = this._service.ConnectionData.Name; WindowEntityEditor.FillIgnoredAttributes(_entityName, _ignoredAttributes); DecreaseInit(); txtBFilterAttribute.SelectionStart = txtBFilterAttribute.Text.Length; txtBFilterAttribute.SelectionLength = 0; txtBFilterAttribute.Focus(); this._attributeChecker = a => a.IsValidForUpdate.GetValueOrDefault() && !_ignoredAttributes.Contains(a.LogicalName); RetrieveEntityInformation(); }