public void SetPhysicalPerson(int id, String name, String email, Decimal salary, DateTime dateBirth, char genre, FrmSearch frs)
        {
            this.id                = id;
            this.txtName.Text      = name;
            this.txtEmail.Text     = email;
            this.txtSalary.Text    = salary.ToString();
            this.dtDateBirth.Value = dateBirth;
            if (genre == 'M')
            {
                this.rdMale.Checked = true;
            }
            else
            {
                this.rdFemale.Checked = true;
            }

            this.btnInsert.Enabled = false;
            this.btnEdit.Enabled   = true;
            this.btnDelete.Enabled = true;
            frs.Close();
        }
Ejemplo n.º 2
0
        private void searchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmSearch fs = new FrmSearch();

            fs.ShowDialog(this);
        }
        private void btnSearch_Click(object sender, EventArgs e)
        {
            FrmSearch frm = new FrmSearch(this);

            frm.ShowDialog(this);
        }