Esempio n. 1
0
        /// <summary>
        /// Reverse of Main Window initialised. When exiting save the position
        /// and size of the window.
        /// </summary>
        /// <param name="sender">>Object sender - Not used</param>
        /// <param name="e">Routed Events - not used</param>
        private void KSMain_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            bCancel = true;

            SaveDevelopPanel();
            WndState.SaveWindowState();
        }
Esempio n. 2
0
 /// <summary>
 /// When the window is initialised, just before the layout is getting updated
 /// use the stored value for position and size. this will ensure persistence
 /// </summary>
 /// <param name="sender">>Object sender - Not used</param>
 /// <param name="e">Routed Events - not used</param>
 private void KSMain_Initialized(object sender, EventArgs e)
 {
     WndState.SetWindowState();
 }