Ejemplo n.º 1
0
        internal void LoadPanel(PanelId?panelId)
        {
            if (IsDisposed)
            {
                return;
            }

            if (InvokeRequired)
            {
                Invoke(new LoadPanelDelegate(LoadPanel), panelId);
            }
            else
            {
                foreach (PanelId id in panelsMap.Keys)
                {
                    ContentPanel panel = panelsMap[id].Panel;

                    if (id == panelId)
                    {
                        panel.UpdateView();
                        panel.Visible = true;
                    }
                    else
                    {
                        panel.Visible = false;
                    }
                }

                Invalidate();
            }
        }