コード例 #1
0
 protected override void OnClosing(CancelEventArgs e)
 {
     base.OnClosing(e);
     CatalogViewerUc.StoreLayouts();
     Saveable.SaveAll();
     Application.Current.Shutdown();
 }
コード例 #2
0
        private async void MainWindowLoaded(object sender, RoutedEventArgs e)
        {
            if (!DesignerProperties.GetIsInDesignMode(this))
            {
                await CatalogViewerUc.Init();

                CatalogViewerUc.RestoreLayouts();
            }
        }