Example #1
0
 public FormLiquidacionesAlta(Liquidaciones form_anterior, String id_comunidad_cargado, String id_liquidacion_cargado)
 {
     InitializeComponent();
     this.form_anterior          = form_anterior;
     this.id_comunidad_cargado   = id_comunidad_cargado;
     this.id_liquidacion_cargado = id_liquidacion_cargado;
 }
Example #2
0
        private void liquidacionesToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            Form existe = Application.OpenForms.OfType <Form>().Where(pre => pre.Name.Contains(nombre_comunidad + " Liquidaciones")).SingleOrDefault <Form>();

            if (existe != null)
            {
                existe.WindowState = FormWindowState.Maximized;
                existe.BringToFront();
                //this.Size = new Size(862, 685);
            }
            else
            {
                LiquidacionesForms.Liquidaciones newMDIChild = new LiquidacionesForms.Liquidaciones(id_comunidad.ToString());
                newMDIChild.MdiParent   = this;
                newMDIChild.WindowState = FormWindowState.Maximized;
                newMDIChild.Show();
                //this.Size = new Size(862,685);
            }
        }