コード例 #1
0
        private void frmMainMenu_Load(object sender, EventArgs e)
        {
            updateDisplayEventHan += new EventHandler <TextArgs>(UpdateDebugDisplay);

            mySerHan = new serialHandle(mySerial);

            mySerHan.updateFormEventHan += new EventHandler <TextArgs>(UpdateDebugDisplay);
            updateSerHanEventHan        += new EventHandler <TextArgs>(mySerHan.handleEvent);

            dgvRFID.DataSource = myTagList;
            dgvAddy.DataSource = myAddyList;
        }
コード例 #2
0
 private void MainClass_Load(object sender, EventArgs e)
 {
     mySerHan = new serialHandle(mySerial);
     myForm   = new frmMainMenu(mySerial, mySerHan);
     myForm.Show();
 }
コード例 #3
0
 public frmMainMenu(SerialPort serial, serialHandle serHan)
 {
     InitializeComponent();
     mySerial = serial;
     mySerHan = serHan;
 }