예제 #1
0
파일: frmMain.cs 프로젝트: rodriman92/Stock
        private void marcasToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            if (this.panelContenedor.Controls.Count > 0)
            {
                this.panelContenedor.Controls.RemoveAt(0);
            }
            frmMarcas frmComp = frmMarcas.GetInstancia();

            frmComp.TopLevel = false;

            frmComp.Dock = DockStyle.Fill;
            this.panelContenedor.Controls.Add(frmComp);
            this.panelContenedor.Tag = frmComp;
            frmComp.Show();
        }
예제 #2
0
        private void marcasToolStripMenuItem1_Click_1(object sender, EventArgs e)
        {
            if (this.panelContenedor.Controls.Count > 0)
            {
                this.panelContenedor.Controls.RemoveAt(0);
            }
            frmMarcas hijo2 = frmMarcas.GetInstancia();

            hijo2.TopLevel = false;

            hijo2.Dock = DockStyle.Fill;
            this.panelContenedor.Controls.Add(hijo2);
            this.panelContenedor.Tag = hijo2;
            hijo2.Show();
        }