コード例 #1
0
        private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            #region Save current Form Parameters to setup file.

            FormSetup.SFP my_setup = new FormSetup.SFP();
            my_setup.SetupFileFileName = "setup.xml";
            my_setup.ComPortName = CurrentComPortName;
            my_setup.WriteSetupFile(this);
            
            #endregion

            #region Close opened file.

            file_magnetometer.Close();

            #endregion
        }
コード例 #2
0
        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            #region Save child Form Parameters to setup file 
            if (Form_3D_DA != null)
            {
                FormSetup.SFP my_setup_a = new FormSetup.SFP();
                my_setup_a.SetupFileFileName = "setup.xml";
                my_setup_a.WriteSetupFile(Form_3D_DA);
            }
            if (Form_3D_DB != null)
            {
                FormSetup.SFP my_setup_b = new FormSetup.SFP();
                my_setup_b.SetupFileFileName = "setup.xml";
                my_setup_b.WriteSetupFile(Form_3D_DB);
            }
            if (Graph_2D_DA != null)
            {
                FormSetup.SFP my_setup_a = new FormSetup.SFP();
                my_setup_a.SetupFileFileName = "setup.xml";
                my_setup_a.WriteSetupFile(Graph_2D_DA);
            }
            if (Graph_2D_DB != null)
            {
                FormSetup.SFP my_setup_b = new FormSetup.SFP();
                my_setup_b.SetupFileFileName = "setup.xml";
                my_setup_b.WriteSetupFile(Graph_2D_DB);
            }
            if (Graph_2D_DC != null)
            {
                FormSetup.SFP my_setup_b = new FormSetup.SFP();
                my_setup_b.SetupFileFileName = "setup.xml";
                my_setup_b.WriteSetupFile(Graph_2D_DC);
            }
            #endregion

        }
コード例 #3
0
 private void Form_3D_FormClosed(object sender, FormClosedEventArgs e)
 {
     FormSetup.SFP my_setup = new FormSetup.SFP();
     my_setup.SetupFileFileName = "setup.xml";
     my_setup.WriteSetupFile(this);
 }