private void BtnAddPatient_Click(object sender, EventArgs e) { var frmAddEditPatient = new FrmAddEditPatient(); frmAddEditPatient.Show(); DisplayDataInListView(_manager.Search(RetrieveDataFromFilters())); }
private void BtnEditPatient_Click(object sender, EventArgs e) { if (LvPatients.SelectedItems.Count > 0) { var frmAddEditPatient = new FrmAddEditPatient(LvPatients.SelectedItems[0].Tag as Patient); frmAddEditPatient.Show(); } DisplayDataInListView(_manager.Search(RetrieveDataFromFilters())); }