public Stopwatch() { arrow = new CircleAnglePicker(); timer = new Timer(); timer.Interval = 1000; timer.Tick += Timer_Tick; picture.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\stopwatch\stopwatch.png"); arrow.Value = 90; arrow.Parent = picture; arrow.Enabled = false; arrow.Height = 45; arrow.Width = 45; arrow.BackColor = Color.Transparent; arrow.Left = 20; arrow.Top = 56; arrow.Parent = picture; arrow.CircleColor = Color.Transparent; GlobalData.LoadFont(13); //метод загрузки шрифта labelValue.ReadOnly = true; labelValue.TabStop = false; labelValue.Font = GlobalData.DigitalFont; labelValue.Left = 19; labelValue.Top = 23; labelValue.BorderStyle = BorderStyle.None; labelValue.BackColor = Color.Black; labelValue.Width = 47; labelValue.ForeColor = Color.DodgerBlue; labelValue.TextAlign = HorizontalAlignment.Center; labelValue.Cursor = Cursors.Hand; }
protected MeterDevice() { //метод загрузки шрифта GlobalData.LoadFont(12); labelValue.Text = Convert.ToString(this.Value); labelValue.Font = GlobalData.DigitalFont; labelValue.Left = 43; labelValue.Top = 96; labelValue.BackColor = Color.Black; labelValue.Width = 50; labelValue.TextAlign = HorizontalAlignment.Center; contactMinus.Width = 35; contactMinus.Height = 12; contactMinus.Left = 13; contactMinus.Top = 113; contactPlus.Width = 35; contactPlus.Height = 12; contactPlus.Left = 85; contactPlus.Top = 113; valueArrow.Value = 180; labelValue.Text = "0"; }
public Resistor() { pictureValuePlus = new PictureBox(); pictureValueMinus = new PictureBox(); picture.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\resistor\resistor.png"); GlobalData.LoadFont(12); //метод загрузки шрифта labelValue.Text = "0"; labelValue.Font = GlobalData.DigitalFont; labelValue.Left = 75; labelValue.Top = 15; labelValue.BackColor = Color.Black; labelValue.Width = 39; labelValue.ForeColor = Color.Orange; labelValue.TextAlign = HorizontalAlignment.Center; pictureValueMinus.Width = 12; pictureValueMinus.Height = 12; pictureValueMinus.Left = 55; pictureValueMinus.Top = 19; pictureValueMinus.SizeMode = PictureBoxSizeMode.AutoSize; pictureValueMinus.BackColor = Color.Transparent; pictureValueMinus.Cursor = Cursors.Hand; pictureValueMinus.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\resistor\minus0.png"); pictureValueMinus.MouseEnter += PictureValueMinus_MouseEnter; pictureValueMinus.MouseLeave += PictureValueMinus_MouseLeave; pictureValueMinus.Click += PictureValueMinus_Click; pictureValuePlus.Width = 12; pictureValuePlus.Height = 12; pictureValuePlus.Left = 119; pictureValuePlus.Top = 19; pictureValuePlus.SizeMode = PictureBoxSizeMode.AutoSize; pictureValuePlus.BackColor = Color.Transparent; pictureValuePlus.Cursor = Cursors.Hand; pictureValuePlus.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\resistor\plus0.png"); pictureValuePlus.MouseEnter += PictureValuePlus_MouseEnter; pictureValuePlus.MouseLeave += PictureValuePlus_MouseLeave; pictureValuePlus.Click += PictureValuePlus_Click; contactMinus.Width = 34; contactMinus.Height = 12; contactMinus.Left = 60; contactMinus.Top = 92; contactPlus.Width = 34; contactPlus.Height = 12; contactPlus.Left = 94; contactPlus.Top = 92; }
public Thermometr(Form form, int x, int y) { scale = new Zeroit.Framework.Metro.ZeroitMetroProgressbar(); pictureThermometr = new PictureBox(); labelValue = new TextBox(); pictureThermometr.Width = 50; pictureThermometr.Height = 274; pictureThermometr.Left = x; pictureThermometr.Top = y; pictureThermometr.BackColor = Color.Transparent; pictureThermometr.MouseWheel += MouseWheel; pictureThermometr.MouseHover += MouseHover; pictureThermometr.MouseLeave += PictureThermometr_MouseLeave; pictureThermometr.MouseEnter += PictureThermometr_MouseEnter; pictureThermometr.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\heating_area\thermometr.png"); scale.Left = pictureThermometr.Left + 12; scale.Top = y + 39; scale.Width = 220; scale.Height = 7; scale.Maximum = 80; scale.Value = 80; scale.DefaultColor = Color.Red; scale.ProgressColor = Color.White; scale.GradientColor = Color.White; scale.Orientation = Orientation.Vertical; scale.MouseWheel += MouseWheel; scale.MouseHover += MouseHover; GlobalData.LoadFont(14); //метод загрузки шрифта labelValue.Text = "0" + grad; labelValue.ReadOnly = true; labelValue.TabStop = false; labelValue.Font = GlobalData.DigitalFont; labelValue.Left = 5; labelValue.Top = 5; labelValue.BorderStyle = BorderStyle.None; labelValue.BackColor = Color.DarkOrange; labelValue.Width = 40; labelValue.ForeColor = Color.Maroon; labelValue.TextAlign = HorizontalAlignment.Center; labelValue.Cursor = Cursors.Hand; labelValue.MouseMove += LabelValue_MouseMove; labelValue.TextChanged += LabelValue_TextChanged; pictureThermometr.Controls.Add(labelValue); form.Controls.Add(scale); form.Controls.Add(pictureThermometr); }
public override void Visualization(Form form, int x, int y) { status = new PictureBox(); knob = new Zeroit.Framework.Metro.ZeroitMetroKnob(); _switch = new Zeroit.Framework.Metro.ZeroitMetroSwitch(); picture.Left = x - picture.Width / 2; picture.Top = y - picture.Height - 10; picture.Image = Properties.Resources.voltage; //метод загрузки шрифта GlobalData.LoadFont(12); labelValue.Hide(); labelValue.Font = GlobalData.DigitalFont; labelValue.Left = 179; labelValue.Top = 39; labelValue.BackColor = Color.Black; labelValue.Width = 50; labelValue.ForeColor = Color.DeepSkyBlue; labelValue.TextAlign = HorizontalAlignment.Right; knob.Top = 20; knob.Left = 90; knob.Width = 63; knob.Height = 63; knob.BlockedAngle = 90; knob.Maximum = 50; knob.Minimum = 1; knob.Value = 1; knob.BorderColor = Color.DimGray; knob.LineColor = Color.DimGray; knob.AccentColor = Color.DimGray; knob.FillColor = Color.Black; knob.Cursor = Cursors.Hand; knob.LineWidth = 9; knob.LineLength = 100; knob.LinePen.EndCap = System.Drawing.Drawing2D.LineCap.Round; knob.LinePen.StartCap = System.Drawing.Drawing2D.LineCap.NoAnchor; knob.LinePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid; knob.LinePen.DashCap = System.Drawing.Drawing2D.DashCap.Flat; knob.ValueChanged += Knob_ValueChanged; knob.MouseDown += Knob_MouseDown; knob.MouseUp += Knob_MouseUp; status.Width = 10; status.Height = 10; status.Left = 20; status.Top = 22; status.SizeMode = PictureBoxSizeMode.AutoSize; status.BackColor = Color.Transparent; status.Image = Properties.Resources.status_volt_off; _switch.Width = 38; _switch.Height = 20; _switch.Left = 36; _switch.Top = 17; _switch.Cursor = Cursors.Hand; _switch.DefaultColor = Color.DodgerBlue; _switch.CheckColor = Color.Silver; _switch.HoverColor = Color.DodgerBlue; _switch.CheckedChanged += _switch_CheckedChanged; contactMinus.Width = 34; contactMinus.Height = 12; contactMinus.Left = 174; contactMinus.Top = 90; contactPlus.Width = 34; contactPlus.Height = 12; contactPlus.Left = 208; contactPlus.Top = 90; SetPositionControls(208, 2, 229, 2); picture.Controls.Add(labelValue); picture.Controls.Add(knob); picture.Controls.Add(status); picture.Controls.Add(_switch); picture.Controls.Add(contactMinus); picture.Controls.Add(contactPlus); // Установки свойств штекеров для подключения SetPositionsPlugs(form, 180, 209); // распределение составляющих компонента по слоям labelValue.BringToFront(); knob.BringToFront(); contactMinus.BringToFront(); contactPlus.BringToFront(); _switch.BringToFront(); plugMinusDU.BringToFront(); plugPlusDU.BringToFront(); pictureDelete.BringToFront(); pictureMove.BringToFront(); GlobalData.WorkForm.Controls.Add(picture); }
public Multimeter() { button = new PictureBox(); status = new PictureBox(); knob = new Zeroit.Framework.Metro.ZeroitMetroKnob(); picture.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\multimetr\multimetr.png"); button.Width = 41; button.Height = 18; button.Left = 15; button.Top = 58; button.Cursor = Cursors.Hand; button.SizeMode = PictureBoxSizeMode.AutoSize; button.BackColor = Color.Transparent; button.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\multimetr\power1.png"); button.Click += Button_Click; button.MouseDown += Button_MouseDown; button.MouseUp += Button_MouseUp; status.Width = 8; status.Height = 8; status.Left = 80; status.Top = 60; status.SizeMode = PictureBoxSizeMode.AutoSize; status.BackColor = Color.Transparent; status.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\multimetr\status_off.png"); //метод загрузки шрифта GlobalData.LoadFont(13); labelValue.Text = ""; labelValue.Font = GlobalData.DigitalFont; labelValue.Left = 22; labelValue.Top = 29; labelValue.BackColor = Color.Black; labelValue.Width = 75; labelValue.ForeColor = Color.Silver; labelValue.TextAlign = HorizontalAlignment.Right; labelValue.Cursor = Cursors.Hand; knob.Top = 105; knob.Left = 32; knob.Width = 59; knob.Height = 59; knob.BlockedAngle = 0; knob.BorderColor = Color.DimGray; knob.LineColor = Color.DimGray; knob.AccentColor = Color.DimGray; knob.FillColor = Color.Black; knob.Cursor = Cursors.Hand; knob.LineWidth = 7; knob.LineLength = 100; knob.Value = 20; knob.ValueChanged += Knob_ValueChanged; knob.LinePen.EndCap = System.Drawing.Drawing2D.LineCap.Round; knob.LinePen.StartCap = System.Drawing.Drawing2D.LineCap.NoAnchor; knob.LinePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid; knob.LinePen.DashCap = System.Drawing.Drawing2D.DashCap.Flat; contactMinus.Width = 33; contactMinus.Height = 12; contactMinus.Left = 16; contactMinus.Top = 192; contactPlus.Width = 33; contactPlus.Height = 12; contactPlus.Left = 49; contactPlus.Top = 192; statusDevice = false; labelValue.Visible = false; typeUnit = TypeUnit.Picofarad; this.Value = 0; }
public Rheostat() { slider = new Zeroit.Framework.Metro.ZeroitMetroTrackbar(); tablo = new PictureBox(); probe = new PictureBox(); picture.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\rheostat\rheostat.png"); slider.Top = 36; slider.Left = 37; slider.Minimum = 1; slider.Maximum = 50; slider.Value = 0; slider.BorderColor = Color.DimGray; slider.RailWidth = 3; slider.SliderWidth = 17; slider.LeftColor = Color.Silver; slider.RightColor = Color.Silver; slider.HoverColor = Color.DimGray; slider.GradientColor = Color.Silver; slider.SliderColor = Color.DimGray; slider.Cursor = Cursors.Hand; slider.Width = 113; slider.Height = 9; slider.Scroll += Slider_Scroll; slider.MouseUp += Slider_MouseUp; tablo.Top = 10; tablo.SizeMode = PictureBoxSizeMode.AutoSize; tablo.Left = slider.Left - 15 + slider.Value; tablo.BackColor = Color.Transparent; tablo.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\rheostat\tablo.png"); probe.Top = 42; probe.Width = 7; probe.SizeMode = PictureBoxSizeMode.AutoSize; probe.Left = tablo.Left + tablo.Width / 2 - probe.Width / 2 - 1; probe.BackColor = Color.Transparent; probe.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\rheostat\probe.png"); GlobalData.LoadFont(12); //метод загрузки шрифта labelValue.Font = GlobalData.DigitalFont; labelValue.Left = tablo.Left + 5; labelValue.Top = 14; labelValue.BackColor = Color.Black; labelValue.Width = 37; labelValue.ForeColor = Color.Orange; labelValue.TextAlign = HorizontalAlignment.Center; contactMinus.Width = 34; contactMinus.Height = 12; contactMinus.Left = 60; contactMinus.Top = 92; contactPlus.Width = 34; contactPlus.Height = 12; contactPlus.Left = 94; contactPlus.Top = 92; labelValue.Text = "1"; this.resistanceValue = 1; }
public Capacitor() { textBoxFlatE = new TextBox(); textBoxCylE = new TextBox(); textBoxS = new TextBox();; textBoxD = new TextBox();; textBoxR1 = new TextBox();; textBoxR2 = new TextBox();; textBoxL = new TextBox();; pictureValuePlus = new PictureBox(); pictureValueMinus = new PictureBox(); pictureSeq = new PictureBox(); picturePar = new PictureBox(); pictureGearFlat = new PictureBox(); pictureGearCylinder = new PictureBox(); picturePanelFlat = new PictureBox(); picturePanelCyl = new PictureBox(); checkCircleFlat = new Zeroit.Framework.Metro.ZeroitMetroCheckCircle(); checkCircleCylinder = new Zeroit.Framework.Metro.ZeroitMetroCheckCircle(); colorScheme = new Zeroit.Framework.Metro.ZeroitMetroCheckCircle.MainColorScheme(); picture.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\capacitor\capacitor.png"); //метод загрузки шрифта GlobalData.LoadFont(14); labelValue.Font = GlobalData.DigitalFont; labelValue.Left = 74; labelValue.Top = 62; labelValue.BackColor = Color.Black; labelValue.Width = 38; labelValue.ForeColor = Color.LimeGreen; labelValue.TextAlign = HorizontalAlignment.Center; pictureValueMinus.Width = 16; pictureValueMinus.Height = 16; pictureValueMinus.Left = 49; pictureValueMinus.Top = 66; pictureValueMinus.SizeMode = PictureBoxSizeMode.AutoSize; pictureValueMinus.BackColor = Color.Transparent; pictureValueMinus.Cursor = Cursors.Hand; pictureValueMinus.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\capacitor\minus0.png"); pictureValueMinus.MouseEnter += PictureValueMinus_MouseEnter; pictureValueMinus.MouseLeave += PictureValueMinus_MouseLeave; pictureValueMinus.Click += PictureValueMinus_Click; pictureValuePlus.Width = 16; pictureValuePlus.Height = 16; pictureValuePlus.Left = 121; pictureValuePlus.Top = 66; pictureValuePlus.SizeMode = PictureBoxSizeMode.AutoSize; pictureValuePlus.BackColor = Color.Transparent; pictureValuePlus.Cursor = Cursors.Hand; pictureValuePlus.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\capacitor\plus0.png"); pictureValuePlus.MouseEnter += PictureValuePlus_MouseEnter; pictureValuePlus.MouseLeave += PictureValuePlus_MouseLeave; pictureValuePlus.Click += PictureValuePlus_Click; pictureSeq.Width = 44; pictureSeq.Height = 9; pictureSeq.Left = 71; pictureSeq.Top = 23; pictureSeq.SizeMode = PictureBoxSizeMode.AutoSize; pictureSeq.BackColor = Color.Transparent; pictureSeq.Cursor = Cursors.Hand; pictureSeq.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\capacitor\sequentially0.png"); pictureSeq.Click += PictureSeq_Click; picturePar.Width = 44; picturePar.Height = 9; picturePar.Left = 71; picturePar.Top = 35; picturePar.SizeMode = PictureBoxSizeMode.AutoSize; picturePar.BackColor = Color.Transparent; picturePar.Cursor = Cursors.Hand; picturePar.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\capacitor\parallel0.png"); picturePar.Click += PicturePar_Click; colorScheme.BorderColor = Color.Transparent; colorScheme.FillColor = Color.White; colorScheme.InnerCirclecolor = Color.White; checkCircleFlat.CheckOnClick = true; checkCircleFlat.ColorScheme = colorScheme; checkCircleFlat.Left = 11; checkCircleFlat.Top = 74; checkCircleFlat.Size = new Size(20, 20); checkCircleFlat.Cursor = Cursors.Hand; checkCircleFlat.BackColor = Color.Green; checkCircleFlat.Click += CheckCircle_Click; checkCircleFlat.DoubleClick += CheckCircle_DoubleClick; checkCircleCylinder.CheckOnClick = true; checkCircleCylinder.ColorScheme = colorScheme; checkCircleCylinder.Left = 155; checkCircleCylinder.Top = 74; checkCircleCylinder.Size = new System.Drawing.Size(20, 20); checkCircleCylinder.Cursor = Cursors.Hand; checkCircleCylinder.BackColor = Color.Green; checkCircleCylinder.Click += CheckCircle_Click; checkCircleCylinder.DoubleClick += CheckCircle_DoubleClick; pictureGearFlat.Width = 11; pictureGearFlat.Height = 12; pictureGearFlat.Left = 11; pictureGearFlat.Top = 8; pictureGearFlat.SizeMode = PictureBoxSizeMode.AutoSize; pictureGearFlat.BackColor = Color.Transparent; pictureGearFlat.Cursor = Cursors.Hand; pictureGearFlat.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\capacitor\gear.png"); pictureGearFlat.Click += PictureGearFlat_Click; pictureGearCylinder.Width = 11; pictureGearCylinder.Height = 12; pictureGearCylinder.Left = 165; pictureGearCylinder.Top = 8; pictureGearCylinder.SizeMode = PictureBoxSizeMode.AutoSize; pictureGearCylinder.BackColor = Color.Transparent; pictureGearCylinder.Cursor = Cursors.Hand; pictureGearCylinder.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\capacitor\gear.png"); pictureGearCylinder.Click += PictureGearCylinder_Click; picturePanelFlat.Width = 134; picturePanelFlat.Height = 161; picturePanelFlat.SizeMode = PictureBoxSizeMode.AutoSize; picturePanelFlat.BackColor = Color.Transparent; picturePanelFlat.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\capacitor\panelFlat.png"); GlobalData.LoadFont(11); //метод загрузки шрифта textBoxS.TabStop = false; textBoxS.Font = GlobalData.DigitalFont; textBoxS.Left = 15; textBoxS.Top = 33; textBoxS.BackColor = Color.White; textBoxS.Width = 95; textBoxS.ForeColor = Color.Black; textBoxS.TextAlign = HorizontalAlignment.Left; textBoxS.Cursor = Cursors.IBeam; textBoxS.KeyPress += GlobalData.KeyPress; GlobalData.LoadFont(11); //метод загрузки шрифта textBoxFlatE.TabStop = false; textBoxFlatE.Font = GlobalData.DigitalFont; textBoxFlatE.Left = 15; textBoxFlatE.Top = 77; textBoxFlatE.BackColor = Color.White; textBoxFlatE.Width = 95; textBoxFlatE.ForeColor = Color.Black; textBoxFlatE.TextAlign = HorizontalAlignment.Left; textBoxFlatE.Cursor = Cursors.IBeam; textBoxFlatE.KeyPress += GlobalData.KeyPress; GlobalData.LoadFont(11); //метод загрузки шрифта textBoxD.TabStop = false; textBoxD.Font = GlobalData.DigitalFont; textBoxD.Left = 15; textBoxD.Top = 122; textBoxD.BackColor = Color.White; textBoxD.Width = 95; textBoxD.ForeColor = Color.Black; textBoxD.TextAlign = HorizontalAlignment.Left; textBoxD.Cursor = Cursors.IBeam; textBoxD.KeyPress += GlobalData.KeyPress; picturePanelCyl.Width = 129; picturePanelCyl.Height = 200; picturePanelCyl.SizeMode = PictureBoxSizeMode.AutoSize; picturePanelCyl.BackColor = Color.Transparent; picturePanelCyl.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\capacitor\panelCyl.png"); GlobalData.LoadFont(11); //метод загрузки шрифта textBoxR1.TabStop = false; textBoxR1.Font = GlobalData.DigitalFont; textBoxR1.Left = 17; textBoxR1.Top = 29; textBoxR1.BackColor = Color.White; textBoxR1.Width = 100; textBoxR1.ForeColor = Color.Black; textBoxR1.TextAlign = HorizontalAlignment.Left; textBoxR1.Cursor = Cursors.IBeam; textBoxR1.KeyPress += GlobalData.KeyPress; GlobalData.LoadFont(11); //метод загрузки шрифта textBoxR2.TabStop = false; textBoxR2.Font = GlobalData.DigitalFont; textBoxR2.Left = 17; textBoxR2.Top = 74; textBoxR2.BackColor = Color.White; textBoxR2.Width = 100; textBoxR2.ForeColor = Color.Black; textBoxR2.TextAlign = HorizontalAlignment.Left; textBoxR2.Cursor = Cursors.IBeam; textBoxR2.KeyPress += GlobalData.KeyPress; GlobalData.LoadFont(11); //метод загрузки шрифта textBoxCylE.TabStop = false; textBoxCylE.Font = GlobalData.DigitalFont; textBoxCylE.Left = 17; textBoxCylE.Top = 117; textBoxCylE.BackColor = Color.White; textBoxCylE.Width = 100; textBoxCylE.ForeColor = Color.Black; textBoxCylE.TextAlign = HorizontalAlignment.Left; textBoxCylE.Cursor = Cursors.IBeam; textBoxCylE.KeyPress += GlobalData.KeyPress; GlobalData.LoadFont(11); //метод загрузки шрифта textBoxL.TabStop = false; textBoxL.Font = GlobalData.DigitalFont; textBoxL.Left = 17; textBoxL.Top = 164; textBoxL.BackColor = Color.White; textBoxL.Width = 100; textBoxL.ForeColor = Color.Black; textBoxL.TextAlign = HorizontalAlignment.Left; textBoxL.Cursor = Cursors.IBeam; textBoxL.KeyPress += GlobalData.KeyPress; contactMinus.Width = 34; contactMinus.Height = 12; contactMinus.Left = 60; contactMinus.Top = 92; contactPlus.Width = 34; contactPlus.Height = 12; contactPlus.Left = 94; contactPlus.Top = 92; labelValue.Text = "1"; typeCapacitor = GlobalData.TypeCapacitor.Flat; checkCircleFlat.Checked = true; checkCircleCylinder.Checked = false; picturePanelFlat.Visible = false; picturePanelCyl.Visible = false; }
private TextBox textBoxD; // public Conductor() { pictureGear = new PictureBox(); picturePanel = new PictureBox(); textBoxL = new TextBox(); textBoxD = new TextBox(); picture.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\conductor\conductor.png"); GlobalData.LoadFont(12); //метод загрузки шрифта labelValue.ReadOnly = true; labelValue.TabStop = false; labelValue.Font = GlobalData.DigitalFont; labelValue.Left = 75; labelValue.Top = 15; labelValue.BackColor = Color.Black; labelValue.Width = 39; labelValue.ForeColor = Color.Orange; labelValue.TextAlign = HorizontalAlignment.Center; pictureGear.Width = 11; pictureGear.Height = 12; pictureGear.Left = 12; pictureGear.Top = 9; pictureGear.SizeMode = PictureBoxSizeMode.AutoSize; pictureGear.BackColor = Color.Transparent; pictureGear.Cursor = Cursors.Hand; pictureGear.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\conductor\gear.png"); pictureGear.Click += PictureGear_Click; picturePanel.Visible = false; picturePanel.Width = 133; picturePanel.Height = 131; picturePanel.BackColor = Color.Transparent; picturePanel.Image = Image.FromFile(@"C:\Users\Evgenij\CourseProject\ElectronVPL\pictures\conductor\panel.png"); GlobalData.LoadFont(11); //метод загрузки шрифта textBoxL.TabStop = false; textBoxL.Font = GlobalData.DigitalFont; textBoxL.Left = 15; textBoxL.Top = 33; textBoxL.BackColor = Color.White; textBoxL.Width = 95; textBoxL.ForeColor = Color.Black; textBoxL.TextAlign = HorizontalAlignment.Left; textBoxL.Cursor = Cursors.IBeam; GlobalData.LoadFont(11); //метод загрузки шрифта textBoxD.TabStop = false; textBoxD.Font = GlobalData.DigitalFont; textBoxD.Left = 15; textBoxD.Top = 87; textBoxD.BackColor = Color.White; textBoxD.Width = 95; textBoxD.ForeColor = Color.Black; textBoxD.TextAlign = HorizontalAlignment.Left; textBoxD.Cursor = Cursors.IBeam; contactMinus.Width = 34; contactMinus.Height = 12; contactMinus.Left = 60; contactMinus.Top = 92; contactPlus.Width = 34; contactPlus.Height = 12; contactPlus.Left = 94; contactPlus.Top = 92; labelValue.Text = "0"; this.resistanceValue = 0; }