Esempio n. 1
0
 public Store()
 {
     InitializeComponent();
     Title = "VOTC Store";
     Kernel.StoreWindow = this;
     Content            = new StoreUi();
 }
Esempio n. 2
0
 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);
 }