Exemplo n.º 1
0
        //**************************************************************************************************
        //                                   Hilfsfunktionen
        //**************************************************************************************************

        #region Hilfsfunktionen

        private void Update_mySettings()
        {
            mySettings = new Settings_ATIM()
            {
                //Eigenschaften TTA
                Device         = this.comboBox_Setting_Device.Text,
                Heat_time      = this.Number_Setting_Heat_Time.Value,
                Heat_current   = this.Number_Setting_Heat_Current.Value,
                Heat_voltage   = this.Number_Setting_Heat_Voltage.Value,
                Meas_time      = this.Number_Setting_Meas_Time.Value,
                Meas_current   = this.Number_Setting_Meas_Current.Value,
                Meas_voltage   = this.Number_Setting_Meas_Voltage.Value,
                Offset_voltage = this.Number_Setting_Offset_Voltage.Value,
                Cycles         = (UInt16)this.Number_Setting_Cycles.Value,

                //Eigenschaten Temperature
                Temperature_TTA     = this.number_Setting_Temperature.Value,
                Default_Sensitivity = this.numericUpDown_DefaultSensitivity.Value,
                TEC_OnOff           = this.checkBox_TEC_OnOff.Checked,
                FAN_Enable          = this.checkBox_TEC_FAN_enable.Checked,

                Temperature_SEN_Start = this.number_Setting_Sensitivity_Start.Value,
                Temperature_SEN_End   = this.number_Setting_Sensitivity_Stop.Value,
                Temperature_SEN_Step  = (UInt16)this.number_Setting_Sensitivity_Step.Value,

                //Eigenschaften Save
                Save_Aver_Cool   = this.checkBox_Setting_Save_aver_cool.Checked,
                Save_Aver_Heat   = this.checkBox_Setting_Save_aver_heat.Checked,
                Save_Signle_Cool = this.checkBox_Setting_Save_single_cool.Checked,
                Save_Single_Heat = this.checkBox_Settings_Save_single_heat.Checked,
                Save_Raw         = this.checkBox_Setting_Save_raw.Checked,

                Save_Folder   = this.textBox_Folder.Text,
                Save_FileName = this.textBox_FileName.Text,

                //Eigenschaften XYZ
                GerberFile_Path = this.textBox_Setting_Gerber_Path.Text,

                //Eigenschaften Spectrum
                Spectrum_range        = this.comboBox_Setting_Spectrum_Range.Text,
                Spectrum_frequency    = this.comboBox_Setting_Spectrum_frequency.Text,
                Spectrum_triggerLevel = this.number_Setting_Spectrum_Trigger.Value
            };
        }
Exemplo n.º 2
0
        //**************************************************************************************************
        //                                Tool Bar -> Save & Open
        //**************************************************************************************************

        #region ToolBar

        private void BarOpen_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //Dialog erzeugen
            OpenFileDialog myOpenFileDialoge = new OpenFileDialog()
            {
                Filter      = "txt files (*.SET)|*.SET|All files (*.*)|*.*",
                FilterIndex = 0
            };

            if (myOpenFileDialoge.ShowDialog() == DialogResult.OK)
            {
                myPath     = myOpenFileDialoge.FileName;
                mySettings = new Settings_ATIM();
                mySettings.Open(myPath);
            }

            //Werte in UI updaten
            Update_UI();
        }