private void previousBtn_Click(object sender, EventArgs e) { this.Close(); MoreInfoOfPacketCAT21 newForm = new MoreInfoOfPacketCAT21(this.selectedPacket); newForm.Show(); }
private void moreInfoOfPacket_Click(object sender, EventArgs e) { int packet = packetGridView.CurrentCell.RowIndex; if (dataBlockList[packet].GetCAT10() != null) { MoreInfoOfPacketCAT10 newForm = new MoreInfoOfPacketCAT10(dataBlockList[packet].GetCAT10()); newForm.Show(); } if (dataBlockList[packet].GetCAT21() != null) { MoreInfoOfPacketCAT21 newForm = new MoreInfoOfPacketCAT21(dataBlockList[packet].GetCAT21()); newForm.Show(); } }