Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class MainWindow : Window
- {
- private int[] buffrerReadByte = new int [64];
- public MainWindow()
- {
- InitializeComponent();
- Random r = new Random();
- for (int i = 0; i < buffrerReadByte.Length; i++)
- {
- buffrerReadByte[i] = r.Next(0, 255);
- }
- List<NameCollum> byteList = new List<NameCollum>
- {
- new NameCollum { С1 = 1, C2 = 2, С3 = 3, C4 = 4, С5 = 5, C6 = 6, С7 = 7, C8 = 8 },
- };
- nameDataGrid.ItemsSource = byteList;
- }
- }
- public class NameCollum
- {
- public int С1 { get; set; }
- public int C2 { get; set; }
- public int С3 { get; set; }
- public int C4 { get; set; }
- public int С5 { get; set; }
- public int C6 { get; set; }
- public int С7 { get; set; }
- public int C8 { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment