PageRenderTime 62ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 0ms

/source2/VSIP/Cosmos.VS.Debug/AssemblyUC.xaml.cs

https://bitbucket.org/mvptracker/cosmos
C# | 32 lines | 25 code | 3 blank | 4 comment | 0 complexity | eb85f52e5ba06a7afd15b57b51446de7 MD5 | raw file
Possible License(s): BSD-2-Clause
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Navigation;
  13. using System.Windows.Shapes;
  14. namespace Cosmos.VS.Debug {
  15. public partial class AssemblyUC : UserControl {
  16. public AssemblyUC() {
  17. InitializeComponent();
  18. }
  19. public void Update(byte[] aData) {
  20. string xData = Encoding.ASCII.GetString(aData);
  21. xData = xData.Replace("\t", " ");
  22. tboxSource.Text = xData;
  23. //string[] xLines = xData.Split('\n');
  24. //foreach (var xLine in xLines) {
  25. // asmUC1.lboxSource.Items.Add(xLine);
  26. //}
  27. }
  28. }
  29. }