public Store() { InitializeComponent(); Title = "VOTC Store"; Kernel.StoreWindow = this; Content = new StoreUi(); }
private void Window_Closing(object sender, CancelEventArgs e) { if (Content.GetType() != typeof(StoreDetailView)) { StoreCache.Clear(); Kernel.StoreWindow = null; GC.Collect(); return; } Title = "VOTC Store"; e.Cancel = true; Content = new StoreUi(); GC.Collect(10, GCCollectionMode.Forced); }