protected override void OnClosing(CancelEventArgs e) { base.OnClosing(e); CatalogViewerUc.StoreLayouts(); Saveable.SaveAll(); Application.Current.Shutdown(); }