Exemple #1
0
        private void suplidoresToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            cSuplidores obj = new cSuplidores();

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

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

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

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