/// <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(); }
/// <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(); }