Esempio n. 1
0
        private void بهآمارگرفتنToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPerson frm = new frmPerson(_personService, _propertyService, _unitOfWork, _settingService);

            frm.ShowDialog();
            FillGridd();
        }
Esempio n. 2
0
        private void grdPersones_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (SelectedId != -1)
            {
                var person = _personService.GetPerson(SelectedId);

                frmPerson frm = new frmPerson(_personService, _propertyService, _unitOfWork, _settingService, person);
                frm.ShowDialog();
                if (checkBox1.Checked == true)
                {
                    FillGridd(true);
                }
                else
                {
                    FillGridd(false);
                }
            }
        }
Esempio n. 3
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (SelectedId != -1)
            {
                var person = _personService.GetPerson(SelectedId);

                frmPerson frm = new frmPerson(_personService, _propertyService, _unitOfWork, _settingService, person);
                frm.ShowDialog();
                if (checkBox1.Checked == true)
                {
                    FillGridd(true);
                }
                else
                {
                    FillGridd(false);
                }
            }
        }