Esempio n. 1
0
 public MainForm()
 {
     InitializeComponent();
     txtConsole.Clear();
     HTool          = new HTool_t();
     Lock           = new Lock_t();
     Lock.Tool      = HTool;
     HTool.ComPort  = serialPort1;
     HTool.IConsole = txtConsole;
     FillMenu();
     // Iteration components
     // Setup Grid
     dgvTable.RowCount = 10;
     for (int i = 0; i <= 9; i++)
     {
         dgvTable.Rows[i].Cells[0].Value = i.ToString();
     }
     // Setup variables
     InstantTable = new int[10, 10];
     AccumTable   = new int[10, 10];
 }
Esempio n. 2
0
 public MainForm()
 {
     InitializeComponent();
     txtConsole.Clear();
     HTool = new HTool_t();
     Lock = new Lock_t();
     Lock.Tool = HTool;
     HTool.ComPort = serialPort1;
     HTool.IConsole = txtConsole;
     FillMenu();
     // Iteration components
     // Setup Grid
     dgvTable.RowCount = 10;
     for (int i = 0; i <= 9; i++) dgvTable.Rows[i].Cells[0].Value = i.ToString();
     // Setup variables
     InstantTable = new int[10, 10];
     AccumTable = new int[10, 10];
 }