private void btnDirect_Click(object sender, EventArgs e) { directCal direction = new directCal(); Form frm = this.FindForm(); direction.parent = frm; frm.Visible = false; communication.serialText = rtbSerial.Text; timer1Main.Enabled = false; direction.Show(); }
private void btnReLoad_Click(object sender, EventArgs e) { this.Dispose(); this.Close(); directCal direction = new directCal(); direction.cardIDArrayCopy = cardIDreference.CardIDArray; direction.cardIDCopy = cardIDreference.cardID; direction.preCardIDCopy = cardIDreference.preCardID; direction.parent = this.parent; direction.Show(); }