Exemplo n.º 1
0
        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();
                }));
            },
                () => { }
                );
        }
Exemplo n.º 2
0
        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();
                    }));
                },
                () => { }
                );
        }