Cosmos/source/Cosmos.VS.Windows/ToolWindows/DebuggerChannelUC.cs
2017-04-17 09:02:54 -05:00

24 lines
639 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
namespace Cosmos.VS.Windows
{
public class DebuggerChannelUC: UserControl
{
public CosmosWindowsPackage Package { get; set; }
protected virtual void HandleChannelMessage(byte aChannel, byte aCommand, byte[] aData)
{
}
public virtual void HandleChannelMessage(ushort aChannelAndCommand, byte[] aData)
{
HandleChannelMessage((byte)(aChannelAndCommand >> 8), (byte)(aChannelAndCommand & 0xFF), aData);
}
}
}