Exemplo n.º 1
0
        public NewGraduirovka(Analis parent)
        {
            InitializeComponent();
            this._Analis = parent;
            //   MessageBox.Show(_Analis.aproksim);
            k1Text.Text = string.Format("{0:0.0000}", _Analis.textBox5.Text);
            k2Text.Text = string.Format("{0:0.0000}", _Analis.textBox6.Text);
            k0Text.Text = string.Format("{0:0.0000}", _Analis.textBox4.Text);
            _Analis.chart1.Series[0].Points.Clear();
            _Analis.chart1.Series[1].Points.Clear();

            // radioButton1.Checked = true;
            //  radioButton4.Checked = true;
            //  radioButton6.Checked = true;
            this.radioButton1.CheckedChanged += new EventHandler(radioButton1_CheckedChanged);
            this.radioButton2.CheckedChanged += new EventHandler(radioButton2_CheckedChanged);
            this.radioButton3.CheckedChanged += new EventHandler(radioButton3_CheckedChanged);
            this.radioButton4.CheckedChanged += new EventHandler(radioButton4_CheckedChanged);
            this.radioButton5.CheckedChanged += new EventHandler(radioButton5_CheckedChanged);
            this.radioButton6.CheckedChanged += new EventHandler(radioButton6_CheckedChanged);
            this.radioButton7.CheckedChanged += new EventHandler(radioButton7_CheckedChanged);
            if (_Analis.ComPodkl == true)
            {
                WL_grad.Text = _Analis.DLWL;
            }
        }
Exemplo n.º 2
0
        public ParametrsGrad(Analis parent)
        {
            InitializeComponent();
            this._Analis     = parent;
            Ed.SelectedIndex = 9;

            this.radioButton1.CheckedChanged += new EventHandler(radioButton1_CheckedChanged);
            this.radioButton2.CheckedChanged += new EventHandler(radioButton2_CheckedChanged);
            this.radioButton3.CheckedChanged += new EventHandler(radioButton3_CheckedChanged);
            this.radioButton4.CheckedChanged += new EventHandler(radioButton4_CheckedChanged);
            this.radioButton5.CheckedChanged += new EventHandler(radioButton5_CheckedChanged);
            this.radioButton6.CheckedChanged += new EventHandler(radioButton6_CheckedChanged);
            this.radioButton7.CheckedChanged += new EventHandler(radioButton7_CheckedChanged);
            if (_Analis.ComPodkl == true)
            {
                WL_grad.Text = _Analis.DLWL;
            }

            _Analis.chart1.Series[0].Points.Clear();
            _Analis.chart1.Series[1].Points.Clear();
        }
Exemplo n.º 3
0
 public SettingPort(Analis parent)
 {
     InitializeComponent();
     this._Analis = parent;
     //CO();
     // SW();
     // InitializeTimer();
     string[] ports = SerialPort.GetPortNames();
     comboBox1.Items.Clear();
     comboBox1.Items.AddRange(ports);
     if (ports.Length != 0)
     {
         comboBox1.SelectedIndex = 0;
         _Analis.nonPort         = true;
     }
     else
     {
         MessageBox.Show("Подсоедините спектрофотометр и попробуйте подключиться снова!");
         _Analis.nonPort = false;
         Close();
         // Dispose();
     }
 }
Exemplo n.º 4
0
 public Analiz(Analis parent)
 {
     InitializeComponent();
     this._Analis = parent;
 }
Exemplo n.º 5
0
 public Parametr1(Analis parent)
 {
     InitializeComponent();
     this._Analis = parent;
 }
Exemplo n.º 6
0
 public Preview(Analis parent)
 {
     InitializeComponent();
     this._Analis = parent;
 }