public ShowElementsForm(string s, Structure[] arr) { InitializeComponent(); Text = s; showElementsGrid.Rows.Clear(); foreach (Structure q in arr) { object[] row = { q.Key, q.Number, q.Str }; showElementsGrid.Rows.Add(row); } }
public HashWorker(int count, int limit, Structure[] input, double k) : this() { CountOfPackets = count; _packetLimit = limit; _inputArray = input; _koef = k; _stream = new HashedStructure[CountOfPackets]; _cursorPosition = new int[CountOfPackets]; for (var i = 0; i < CountOfPackets; i++) { _stream[i].Packet = new Structure[_packetLimit]; } }