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

            frm.ShowDialog(this);
        }
        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();
        }
Пример #3
0
        private void searchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmSearch fs = new FrmSearch();

            fs.ShowDialog(this);
        }