Example #1
0
        private void ucMainn1_Load(object sender, EventArgs e)
        {
            _obj = this;

            ucMainn ucmainn = new ucMainn();

            ucmainn.Dock = DockStyle.Fill;
            panelContainer.Controls.Add(ucmainn);
        }
Example #2
0
 //GI click start
 private void panelGI_Click(object sender, EventArgs e)
 {
     if (!Form1.Instance.PnlContainer.Controls.ContainsKey("ucGI"))
     {
         ucGI info = new ucGI();
         info.Dock = DockStyle.Fill;
         Form1.Instance.PnlContainer.Controls.Add(info);
     }
     Form1.Instance.PnlContainer.Controls["ucGI"].BringToFront();
 }