private void viewBinaryDiffToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataNodeDiff node = treeViewOutput.SelectedNode as DataNodeDiff;

            if (node != null)
            {
                if (node.Mode == DiffRange.DiffType.Modified)
                {
                    BinaryFrameDiffForm frm = new BinaryFrameDiffForm(node.Left, node.Right);

                    frm.Show(this);
                }
            }
        }
Exemple #2
0
        private void diffPacketsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listLogPackets.SelectedIndices.Count == 2)
            {
                LogPacket[] packets = GetPackets(true);

                BinaryFrameDiffForm frm = new BinaryFrameDiffForm(packets[0].Frame.Root, packets[1].Frame.Root);

                components.Add(frm);

                frm.Show(this);
            }
            else
            {
                MessageBox.Show(this, CANAPE.Properties.Resources.PacketLogControl_SelectDiffPackets,
                    CANAPE.Properties.Resources.MessageBox_ErrorString, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }