Guest User

Untitled

a guest
May 16th, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.96 KB | None | 0 0
  1.     public partial class MainWindow : Window
  2.     {
  3.         private int[] buffrerReadByte = new int [64];
  4.         public MainWindow()
  5.         {
  6.             InitializeComponent();
  7.  
  8.             Random r = new Random();
  9.  
  10.             for (int i = 0; i < buffrerReadByte.Length; i++)
  11.             {
  12.                 buffrerReadByte[i] = r.Next(0, 255);
  13.             }
  14.  
  15.             List<NameCollum> byteList = new List<NameCollum>
  16.             {
  17.                 new NameCollum { С1 = 1, C2 = 2, С3 = 3, C4 = 4, С5 = 5, C6 = 6, С7 = 7, C8 = 8 },
  18.             };
  19.             nameDataGrid.ItemsSource = byteList;
  20.         }
  21.     }
  22.  
  23.     public class NameCollum
  24.     {
  25.         public int С1 { get; set; }
  26.         public int C2 { get; set; }
  27.         public int С3 { get; set; }
  28.         public int C4 { get; set; }
  29.         public int С5 { get; set; }
  30.         public int C6 { get; set; }
  31.         public int С7 { get; set; }
  32.         public int C8 { get; set; }
  33.     }
Advertisement
Add Comment
Please, Sign In to add comment