Ejemplo n.º 1
0
        public void SetPhysicalPerson(string 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.dtBirthday.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 btnSearch_Click(object sender, EventArgs e)
        {
            FrmSearch frm = new FrmSearch(this);

            frm.ShowDialog(this);
        }