ійCol;//колір сеткіp;//перо для малювання сітки  
 public Setka () 
  {= 40;=1;=Color.Black; (); 
 } 
  [Category ( Сітка )] int SetkaSize 
  {{return x; } {X=value; OnChangeProperties (); } 
 } 
  [Category ( Сітка )] int SetkaThickness 
  {{return h; } {H=value; OnChangeProperties (); } 
 } 
  [Category ( Сітка )] Color SetkaColor 
  {{return Col; } {Col=value; OnChangeProperties (); } 
 } 
  [Category ( Сітка )] Color SetkaBackColor 
  {{return BackColor; } {BackColor=value; OnChangeProperties (); } 
 } override void OnPaint (PaintEventArgs e) 
  {. OnPaint (e);=new Pen (Col, h); (int i=0; i lt; this.Width; i=i + x) 
  {. Graphics.DrawLine (p, i, 0, i, this.Height); 
 } 
 //середінаk=(int) Math.Round ((double) this.Width/((double) x * 2)); count=0; (int i=0; i lt; this.Height; i=i + x/10) 
  {. Graphics.DrawLine (p, k * x - 2 * h, i, k * x + 2 * h, i); (count == 5) 
  {. Graphics.DrawLine (p, k * x - 4 * h, i, k * x + 4 * h, i);=0; 
 } ++; 
 } (int i=0; i lt; this.Height; i=i + x) 
  {. Graphics.DrawLine (p, 0, i, this.Width, i); 
 }=(int) Math.Round ((double) this.Height/((double) x * 2));=0; (int i=0; i lt; this.Width; i=i + x/10) 
  {. Graphics.DrawLine (p, i, k * x - 2 * h, i, k * x + 2 * h); (count == 5) 
  {. Graphics.DrawLine (p, i, k * x - 4 * h, i, k * x + 4 * h);=0; 
 } ++; 
 }. Dispose (); 
 } void OnChangeProperties () 
  {
  Invalidate (); 
 } 
 } 
 } 
   5.4 Клас Signal 
   Компонент Signal є настроювачем параметрів електричних сигналів. На ньому можна вибрати тип сигналу (гармонійний або імпульсний) і задати параметри сигналів для кожного типу. Для гармонійного сигналу ними є напруга і частота, а для імпульсного - напруга, частота і час імпульсу (тривалість). 
  using System;System.Collections.Generic;System.ComponentModel;System.Drawing;System.Data;System.Linq;System.Text;System.Windows.Forms;WindowsFormsControlLibrary1
  {partial class Signal: UserControl 
  {UU;//напряженіеF;//частота 
 //public double tp;//час паузиtiti; Signal () 
  {= 1;=1; (); 
				
				
				
				
			 } int U 
  {{return UU; } 
 } float f 
  {{return F; } 
 } float ti 
  {{return titi; } 
 } void button1_Click (object sender, EventArgs e) 
  {(radioButton1.Checked == true) 
  {s=textBox1.Text; 
  {= Convert.ToInt32 (s); 
 } 
  catch 
  {. Show ( Введене значення не є числом! ); 
  return; 
 }=textBox2.Text; 
  {= Convert.ToInt32 (s); 
 } 
  {
  MessageBox.Show ( Введене значення не є числом! ); 
  return; 
 }. Visible=false; 
 } if (radioButton2.Checked == true) 
  {s=textBox3.Text; 
  {= Convert.ToInt32 (s); 
 } 
  {
  MessageBox.Show ( Введене значення не є числом! ); 
  return; 
 }=textBox4.Text; 
  {= (float) Convert.ToDouble (s); 
 } 
  {. Show ( Введене значення не є числом! ); 
  return; 
 }=textBox5.Text; 
  {= (float) Convert.ToDouble (s); x=Math.Pow (f, - 1); 
  if (x lt; ti) 
  {. Show ( Час імпульсу не може бути більше періоду ) ;; 
 } 
 } 
  {. Show ( Введене значення не є числом! ); 
  return; 
 }. Visible=false; 
 } 
 } void button2_Click (object s...