Esempio n. 1
0
        }                                                                       // The current running window

        public LibraryWindow()
        {
            InitializeComponent();

            // Mention that the window is running
            IsRunning = true;
            LibraryWindow.CurrentRunningWindow = this;

            // Insert all the saved pages
            this.InsertAllSavedPages();

            // Handle theme changing
            (Application.Current as App).ThemeChanged += (object obj, ThemeChangedEventArgs e) =>
            {
                OrganicUtility.UpdateImages(this.mainGrid);
            };
            Application.Current.Activated += (object obj, EventArgs e) => OrganicUtility.UpdateImages(this.mainGrid);
        }
Esempio n. 2
0
 /// <summary>
 /// Executes when the window is closed
 /// </summary>
 /// <param name="e"></param>
 protected override void OnClosed(EventArgs e)
 {
     base.OnClosed(e);
     IsRunning            = false;
     CurrentRunningWindow = null;
 }