public IzmerenieFR(CreateDimension parent, string versionPribor1) { InitializeComponent(); this._Analis = parent; Walve.Text = _Analis.GWString; this.versionPribor = versionPribor1; }
public KineticaScan(CreateDimension parent, string versionPribor1) { InitializeComponent(); this._Analis = parent; this.versionPribor = versionPribor1; comboBox1.Text = comboBox1.Items[3].ToString(); }
public MultiWave(CreateDimension parent, string versionPribor1) { InitializeComponent(); this._Analis = parent; this.versionPribor = versionPribor1; comBoxAdd(); LabelAdd(); }
public NewIzmerenie(CreateDimension parent, string versionPribor1, int selet_rezim1) { InitializeComponent(); this._Analis = parent; this.selet_rezim = selet_rezim1; if (selet_rezim == 6) { numericUpDown3.Enabled = false; numericUpDown4.Enabled = false; USE_KO.Checked = true; } DLWave.Text = _Analis.GWString; int index = Opt_dlin_cuvet.FindString(_Analis.WidthCuvette); numericUpDown3.Value = 1; numericUpDown4.Value = 1; // MessageBox.Show(index.ToString()); Opt_dlin_cuvet.SelectedIndex = index; label23.Text = _Analis.code; label22.Text = _Analis.direction; Description.Text = _Analis.Description; Sozdana.Text = _Analis.DateTime; Zavisimost.Text = _Analis.Zavisimoct; Aproksimaciya.Text = _Analis.aproksim; label11.Text = Convert.ToString(_Analis.CountSeriya); label10.Text = Convert.ToString(_Analis.CountInSeriya); label9.Text = string.Format("{0:0.0000}", _Analis.k0); label8.Text = string.Format("{0:0.0000}", _Analis.k1); label7.Text = string.Format("{0:0.0000}", _Analis.k2); label12.Text = _Analis.SposobZadan; Ed_Izmer.Text = _Analis.edconctr; dateTimePicker1.Text = _Analis.DateTime; Deistvie.Text = dateTimePicker1.Value.AddDays(_Analis.Days).ToString("dd.MM.yyyy"); _Analis.WidthCuvette = Convert.ToString(index); if (_Analis.USE_KO == true) { USE_KO.Checked = true; } else { USE_KO.Checked = false; } }
public ExcelResim(CreateDimension parent, string versionPribor1) { InitializeComponent(); this._Analis = parent; this.versionPribor = versionPribor1; }
public NewGraduirovka(CreateDimension parent, string versionPribor1) { InitializeComponent(); this._Analis = parent; WL_grad.Text = _Analis.GWString; this.versionPribor = versionPribor1; var height = 22; var labelx = 6; this.radioButton1.CheckedChanged += new EventHandler(radioButton1_CheckedChanged); this.radioButton2.CheckedChanged += new EventHandler(radioButton2_CheckedChanged); this.radioButton3.CheckedChanged += new EventHandler(radioButton3_CheckedChanged); this.radioButton6.CheckedChanged += new EventHandler(radioButton6_CheckedChanged); this.radioButton7.CheckedChanged += new EventHandler(radioButton7_CheckedChanged); numericUpDown4.Value = oldValue; for (int i = 0; i <= 9; i++) { var label = new Label(); label.Name = "CO" + i++.ToString(); label.Text = "CO " + i-- + " ="; label.Width = 40; label.Location = new Point(labelx, height); height += label.Height; groupBox6.Controls.Add(label); } var height1 = 19; var textBoxx = 52; for (int i = 0; i <= 9; i++) { _Analis.textBoxCO[i] = new TextBox(); _Analis.textBoxCO[i].Name = "COtext" + i++.ToString(); i--; _Analis.textBoxCO[i].Text = Convert.ToString("0,00"); _Analis.textBoxCO[i].Width = 100; _Analis.textBoxCO[i].Height = 20; _Analis.textBoxCO[i].Location = new Point(textBoxx, height1); height1 += _Analis.textBoxCO[i].Height + 3; _Analis.textBoxCO[i].Enabled = false; groupBox6.Controls.Add(_Analis.textBoxCO[i]); _Analis.textBoxCO[i].KeyPress += new System.Windows.Forms.KeyPressEventHandler(txt_KeyPress); } var height2 = 22; var labelx1 = 198; for (int i = 10; i <= 19; i++) { var label = new Label(); label.Name = "CO" + i++.ToString(); label.Text = "CO " + i-- + " ="; label.Width = 40; label.Location = new Point(labelx1, height2); height2 += label.Height; this.Controls.Add(label); groupBox6.Controls.Add(label); } var height3 = 19; var textBoxx3 = 244; for (int i = 10; i <= 19; i++) { _Analis.textBoxCO[i] = new TextBox(); _Analis.textBoxCO[i].Name = "COtext" + i++.ToString(); i--; _Analis.textBoxCO[i].Text = Convert.ToString("0,00"); _Analis.textBoxCO[i].Width = 100; _Analis.textBoxCO[i].Height = 20; _Analis.textBoxCO[i].Location = new Point(textBoxx3, height3); height3 += _Analis.textBoxCO[i].Height + 3; _Analis.textBoxCO[i].Enabled = false; groupBox6.Controls.Add(_Analis.textBoxCO[i]); _Analis.textBoxCO[i].KeyPress += new System.Windows.Forms.KeyPressEventHandler(txt_KeyPress); } numericUpDown4.Value = 3; for (int i = Convert.ToInt32(numericUpDown4.Value) - 1; i >= 0; i--) { this._Analis.textBoxCO[i].Enabled = true; } }