private void MnuPet_Click(object sender, EventArgs e)
        {
            TelaCadastroPet oFrm = new TelaCadastroPet();

            oFrm.MdiParent = this;
            oFrm.Show();
            MnuPet.Enabled = false;
        }
Exemple #2
0
        private void GrdPet_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            PET oPet = ((PET)GrdPet.Rows[e.RowIndex].DataBoundItem);

            if (GrdPet.Rows[e.RowIndex].DataBoundItem != null)
            {
                if (GrdPet.Columns[e.ColumnIndex].Name == "BtnEscolher")
                {
                    TelaCadastroPet frmPet = new TelaCadastroPet(oPet);
                    frmPet.MdiParent = this.MdiParent;
                    frmPet.Show();
                    this.Close();
                }
            }
        }