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

            frm.ShowDialog();
            FillGridd();
        }
Exemplo 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);
                }
            }
        }
Exemplo 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);
                }
            }
        }