예제 #1
0
        private ConvoyItemPanel MakeItemPanel(Model.ConvoyItem item)
        {
            var panel = new ConvoyItemPanel();

            panel.LoadItem(_chapterSave, item);
            return(panel);
        }
예제 #2
0
        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();
        }