Beispiel #1
0
        private void productosToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            cProductos obj = new cProductos();

            obj.MdiParent = this;
            obj.Show();
        }
Beispiel #2
0
        public override void Consultar()
        {
            cProductos obj = new cProductos();

            if (obj.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                int pos = obj.dataProductos.CurrentCell.RowIndex;

                bCodigo.Text = obj.dataProductos.Rows[pos].Cells[0].Value.ToString().Trim();

                //segunda forma
                bCodigo_Validating(null, null);
            }
            obj.Dispose();
        }