예제 #1
0
        private void btnAgregarCliente_Click(object sender, EventArgs e)
        {
            Agregar add = new Agregar();

            this.Hide();
            add.ShowDialog();
        }
예제 #2
0
        private void AgregarC_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Helooo");
            Agregar _ag = new Agregar();

            _ag.ShowDialog();
            ilustrarotroform(new Agregar());
        }
예제 #3
0
        private void Buscarcliente_Click(object sender, EventArgs e)
        {
            Agregar buscarcliente = new Agregar();

            AddOwnedForm(buscarcliente);
            buscarcliente.TopLevel = false;
            buscarcliente.Dock     = DockStyle.Fill;
            this.Controls.Add(buscarcliente);
            this.Tag = buscarcliente;
            buscarcliente.BringToFront();
            buscarcliente.Show();
        }
예제 #4
0
        private void ilustrarotroform(object formhijo)
        {
            if (this.Panelcontenido.Controls.Count > 0)
            {
                this.Panelcontenido.Controls.RemoveAt(0);
            }
            Agregar ag = formhijo as Agregar;

            ag.TopLevel = false;
            ag.Dock     = DockStyle.Fill;
            this.Panelcontenido.Controls.Add(ag);
            this.Panelcontenido.Tag = ag;

            ag.Show();
        }