private ConvoyItemPanel MakeItemPanel(Model.ConvoyItem item) { var panel = new ConvoyItemPanel(); panel.LoadItem(_chapterSave, item); return(panel); }
private void FillPage(FlowLayoutPanel flowPanel) { flowPanel.Invalidate(); var items = _chapterSave.ConvoyRegion.Convoy .Where(GetItemTypes(flowPanel)) .OrderBy((x) => x.ItemID); flowPanel.Controls.Clear(); foreach (var item in items) { var panel = new ConvoyItemPanel(); panel.LoadItem(_chapterSave, item); flowPanel.Controls.Add(panel); } flowPanel.Refresh(); }