Cosmos/source/Cosmos.VS.Debug/AssemblyUC.xaml.cs

32 lines
847 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Cosmos.VS.Debug {
public partial class AssemblyUC : UserControl {
public AssemblyUC() {
InitializeComponent();
}
public void Update(byte[] aData) {
string xData = Encoding.ASCII.GetString(aData);
xData = xData.Replace("\t", " ");
tboxSource.Text = xData;
//string[] xLines = xData.Split('\n');
//foreach (var xLine in xLines) {
// asmUC1.lboxSource.Items.Add(xLine);
//}
}
}
}