Exemplo n.º 1
0
        private void FrmAnasayfa_Load(object sender, EventArgs e)
        {
            _obj = this;

            anasayfa uc = new anasayfa();

            uc.Dock = DockStyle.Fill;
            panelContainer.Controls.Add(uc);
        }
Exemplo n.º 2
0
 private void anaSayfa_Click(object sender, EventArgs e)
 {
     if (!FrmAnasayfa.Instance.PnlContainer.Controls.ContainsKey("anasayfa"))
     {
         anasayfa a1 = new anasayfa();
         a1.Dock = DockStyle.Fill;
         FrmAnasayfa.Instance.PnlContainer.Controls.Add(a1);
     }
     FrmAnasayfa.Instance.PnlContainer.Controls["anasayfa"].BringToFront();
 }