private void BotonMenu_Click(object sender, EventArgs e) { ListaDePacientes listadepacientes = new ListaDePacientes(); if (panelLeft.Width == 72) { panelLeft.Visible = false; panelLeft.Width = 244; panel1.Width = 990; panel1.Location = new Point(243, 0); pictureBox7.Width = 1010; pictureBox7.Location = new Point(0, 0); panelBarra.Width = 1010; panelBarra.Location = new Point(244, 62); Transition1.ShowSync(panelLeft); } else { panelLeft.Visible = false; panelLeft.Width = 72; panel1.Width = 1160; panel1.Location = new Point(72, 0); pictureBox7.Width = 1160; pictureBox7.Location = new Point(0, 0); panelBarra.Width = 1160; panelBarra.Location = new Point(72, 62); Transition1.ShowSync(panelLeft); } }
private void button6_Click(object sender, EventArgs e) { ShowSubMenu(panelListaDePacientes); HideSubMenu(); labelInd.Text = "Lista de pacientes"; panelLabel.Visible = false; Transition1.ShowSync(panelLabel); ListaDePacientes CDP = new ListaDePacientes(); AddOwnedForm(CDP); AbrirFormularioHijo(new ListaDePacientes()); }