コード例 #1
0
 private void FormDxMeasure_FormClosing(object sender,
                                        FormClosingEventArgs e)
 {
     SmUsrSetg.FormMeasurePointsLocation  = this.Location;
     SmUsrSetg.MeasurePointsShowWorkplane = DxMeasure.ShowWorkplane;
     SmUsrSetg.DxMeasureUnitStyle         = _utStyle;
     SmUsr.Save();
 }
コード例 #2
0
        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();
        }
コード例 #3
0
        // 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();
        }
コード例 #4
0
 private void FormQueryPoints_FormClosing(object sender, FormClosingEventArgs e)
 {
     SmUsrSetg.FormMeasurePointsLocation  = this.Location;
     SmUsrSetg.MeasurePointsShowWorkplane = this.ShowWorkplane;
     SmUsr.Save();
 }