protected override void OnClosing(CancelEventArgs e) { base.OnClosing(e); CatalogViewerUc.StoreLayouts(); Saveable.SaveAll(); Application.Current.Shutdown(); }
private async void MainWindowLoaded(object sender, RoutedEventArgs e) { if (!DesignerProperties.GetIsInDesignMode(this)) { await CatalogViewerUc.Init(); CatalogViewerUc.RestoreLayouts(); } }