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; }
private void MainClass_Load(object sender, EventArgs e) { mySerHan = new serialHandle(mySerial); myForm = new frmMainMenu(mySerial, mySerHan); myForm.Show(); }
public frmMainMenu(SerialPort serial, serialHandle serHan) { InitializeComponent(); mySerial = serial; mySerHan = serHan; }