Exemplo n.º 1
0
        private void unidadesToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            cUnidades obj = new cUnidades();

            obj.MdiParent = this;
            obj.Show();
        }
Exemplo n.º 2
0
        public override void Consultar()
        {
            cUnidades obj = new cUnidades();

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

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

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