private void بهآمارگرفتنToolStripMenuItem_Click(object sender, EventArgs e) { frmPerson frm = new frmPerson(_personService, _propertyService, _unitOfWork, _settingService); frm.ShowDialog(); FillGridd(); }
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); } } }
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); } } }