private void SendCanPacketsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     sendPacketForm = new SendPacketForm()
     {
         MdiParent = this
     };
     sendPacketForm.Show();
 }
Exemple #2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            CanPacket currentPacket = null;

            if (canPacketGridView.CurrentRow != null)
            {
                currentPacket = (CanPacket)canPacketList[canPacketGridView.CurrentRow.Index];
            }

            if (currentPacket == null)
            {
                MessageBox.Show("Please select a CanPacket");
            }
            else
            {
                using SendPacketForm sendPacketForm = new SendPacketForm(currentPacket.RawBytesString)
                      {
                          MdiParent = this.MdiParent
                      };
                sendPacketForm.Show();
            }
        }