示例#1
0
 private void btnLineas_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["frmLineas"] != null)
     {
         Application.OpenForms["frmLineas"].Activate();
     }
     else
     {
         frmLineas frm = new frmLineas();
         //frm.MdiParent = this.MdiParent;
         //frm.FamiliaSeleccionada = fam.CodFamilia;
         frm.fam = fam;
         //frm.Cabecera = fam.Referencia + " " + fam.Descripcion;
         frm.ShowDialog();
     }
 }
示例#2
0
 private void btnLinea_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["frmLineas"] != null)
     {
         Application.OpenForms["frmLineas"].Activate();
     }
     else
     {
         frmLineas frm = new frmLineas();
         //frm.MdiParent = this.MdiParent;
         //frm.FamiliaSeleccionada = Convert.ToInt32(cbFamilia.SelectedValue);
         //frm.Cabecera = fam.Referencia + " " + fam.Descripcion;
         frm.fam = fam;
         frm.ShowDialog();
         CargaLineas(Convert.ToInt32(cbFamilia.SelectedValue));
     }
 }