Beispiel #1
0
        void Clicked()
        {
            if (m_wnd == null)
            {
                m_wnd = new OpcodeInfoWindow(m_viewer);
            }

            var item = m_viewer.SelectedItem;

            if (item != null)
            {
                var packet = item.Packet as IPacketWithOpcode;
                if (packet != null)
                {
                    m_wnd.Prepare((WowOpcodes)packet.Opcode);
                }
            }

            if (!m_wnd.IsVisible)
            {
                m_wnd.Show();
            }
        }
Beispiel #2
0
        void Clicked()
        {
            if (m_wnd == null)
                m_wnd = new OpcodeInfoWindow(m_viewer);

            var item = m_viewer.SelectedItem;
            if (item != null)
            {
                var packet = item.Packet as IPacketWithOpcode;
                if (packet != null)
                    m_wnd.Prepare((WowOpcodes)packet.Opcode);
            }

            if (!m_wnd.IsVisible)
                m_wnd.Show();
        }