private void FormDxMeasure_FormClosing(object sender, FormClosingEventArgs e) { SmUsrSetg.FormMeasurePointsLocation = this.Location; SmUsrSetg.MeasurePointsShowWorkplane = DxMeasure.ShowWorkplane; SmUsrSetg.DxMeasureUnitStyle = _utStyle; SmUsr.Save(); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { // e.Cancel = true; // this.Visibility = Visibility.Hidden; logMsgDbLn2("window", "closing"); logMsgDbLn2("dialog result", DialogResult.ToString()); SmUsrSetg.FormMeasurePointsLocation = new Point((int)this.Left, (int)this.Top); SmUsrSetg.MeasurePointsShowWorkplane = this.ShowWorkplane; SmUsr.Save(); }
// test config setting functions private void test111() { logMsgDbLn2("config Settings", "before"); logMsg(""); ListConfigSettings(); logMsg(""); logMsgDbLn2("config Settings", "reset"); SmUsr.Reset(); SmApp.Reset(); ListConfigSettings(); logMsg(""); logMsgDbLn2("config Settings", "save"); SmUsr.Save(); SmApp.Save(); }
private void FormQueryPoints_FormClosing(object sender, FormClosingEventArgs e) { SmUsrSetg.FormMeasurePointsLocation = this.Location; SmUsrSetg.MeasurePointsShowWorkplane = this.ShowWorkplane; SmUsr.Save(); }