예제 #1
0
파일: ManWindow.cs 프로젝트: burstas/rmps
        private void ShowControl(IOptions options)
        {
            if (PlMisc.InvokeRequired)
            {
                PlMisc.Invoke(new RelayoutHandler(ShowControl), new object[] { options });
            }
            else
            {
                PlMisc.Controls.Clear();

                UserControl uc = options.GetControl();
                uc.AutoSize = true;
                uc.Dock = DockStyle.Fill;
                uc.Location = new System.Drawing.Point(0, 0);
                uc.Size = new System.Drawing.Size(272, 26);
                uc.TabIndex = 1;
                PlMisc.Controls.Add(uc);
            }
        }