public object Clone() { var result = MemberwiseClone() as ExportableCatalogFull; result.Catalogs = Catalogs?.Select(x => x.Clone() as ExportableCatalog).ToList(); result.Categories = Categories?.Select(x => x.Clone() as ExportableCategory).ToList(); result.Properties = Properties?.Select(x => x.Clone() as ExportableProperty).ToList(); result.PropertyDictionaryItems = PropertyDictionaryItems?.Select(x => x.Clone() as ExportablePropertyDictionaryItem).ToList(); result.CatalogProducts = CatalogProducts?.Select(x => x.Clone() as ExportableCatalogProduct).ToList(); return(result); }
private void AddDefectusLine_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { if ((bool)e.NewValue == false) { return; } Dispatcher.BeginInvoke(DispatcherPriority.ContextIdle, new Action(delegate() { CatalogProducts.Focus(); })); }