示例#1
0
文件: MainForm.cs 项目: Kreyl/nute
 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];
 }
示例#2
0
文件: MainForm.cs 项目: Kreyl/nute
 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];
 }