示例#1
0
        private void ArticulosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmarticulo form = frmarticulo.Getinstancia();

            form.MdiParent = this;
            form.Show();
        }
 public static frmarticulo Getinstancia()
 {
     if (_Instancia == null)
     {
         _Instancia = new frmarticulo();
     }
     return(_Instancia);
 }
        private void datagridcategoria_DoubleClick(object sender, EventArgs e)
        {
            frmarticulo form = frmarticulo.Getinstancia();
            string      par1, par2;

            par1 = Convert.ToString(this.datagridcategoria.CurrentRow.Cells["idcategoria"].Value);
            par2 = Convert.ToString(this.datagridcategoria.CurrentRow.Cells["nombre"].Value);
            form.Setcategoria(par1, par2);
            this.Hide();
        }