private void AddItem(ItemSummary itemSummary) { if (itemSummary == null) { return; } itemSummary.GetFullItem( item => { if (item == null) { return; } var control = new D3ItemControl(item); guiItemsPanel.Invoke(new MethodInvoker(() => { SuspendLayout(); guiItemsPanel.Controls.Add(control); ResumeLayout(); })); }, () => { } ); }
private void AddItem(ItemSummary itemSummary) { if (itemSummary == null) { return; } itemSummary.GetFullItem( item => { if (item == null) { return; } var control = new D3ItemControl(item); guiItemsPanel.Invoke(new MethodInvoker(() => { SuspendLayout(); guiItemsPanel.Controls.Add(control); ResumeLayout(); })); }, () => { } ); }