public override void SetAndRefreshData(Structures.BlockBase blockBase) { base.SetAndRefreshData(blockBase); _directoryItem = (DirectoryOfItems)blockBase; NumberOfItems.Text = _directoryItem.NumOfItems.ToString(); RoomsInfo.Items.Clear(); foreach (DirectoryItem colorCycle in _directoryItem.Rooms) { var item = RoomsInfo.Items.Add(colorCycle.Number.ToString()); item.SubItems.Add(colorCycle.Offset.ToString()); } RoomsInfo.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize); }
void Awake() { instance = this; }