private void AddRow(DeviceConfiguration config, int index) { var row = new Controls.Row(); row.Configuration = config; row.Clicked += Row_Clicked; Rows.Insert(index, row); }
private void AddRow(DeviceConfiguration config) { var row = new Row(); row.Configuration = config; row.Clicked += Row_Clicked; Rows.Add(row); }
private void Row_Clicked(Controls.Row row) { var data = new EventData(this); data.Id = "OPEN_DEVICE_DETAILS"; data.Data01 = row.Device; SendData?.Invoke(data); }