Exemplo n.º 1
0
        public void ShowCommonControls(bool show, Pair <Type, Type> types, CommonControlsPlayers cctrlsPlayers, CommonControlsCapture cctrlsCapture)
        {
            splitScreensPanel.Panel2Collapsed = !show;
            if (types == null)
            {
                return;
            }

            splitScreensPanel.Panel2.Controls.Clear();

            if (types.First == typeof(PlayerScreen))
            {
                splitScreensPanel.Panel2.Controls.Add(cctrlsPlayers);
            }
            else
            {
                splitScreensPanel.Panel2.Controls.Add(cctrlsCapture);
            }
        }