void VEd_CloseRequested(object sender, Xwt.CloseRequestedEventArgs args) { fcmd.Properties.Settings.Default.VEWinHeight = this.Height; fcmd.Properties.Settings.Default.VEWinWidth = this.Width; SendCommand("unload"); this.Hide(); }
void MainWindow_CloseRequested(object sender, Xwt.CloseRequestedEventArgs args) { //save settings bcos zi form is closing Properties.Settings.Default.WinHeight = this.Height; Properties.Settings.Default.WinWidth = this.Width; Properties.Settings.Default.Panel1URL = p1.FS.CurrentDirectory; Properties.Settings.Default.Panel2URL = p2.FS.CurrentDirectory; Properties.Settings.Default.LastActivePanel = (ActivePanel == p1) ? (byte)1 : (byte)2; Properties.Settings.Default.Save(); Xwt.Application.Exit(); }