public static void RemovePlugin <T>() { foreach (var item in CommandMap) { if (typeof(T) != item.Value.GetType()) { continue; } CommandMap.Remove(item.Key, out _); } foreach (var item in ServiceList) { if (typeof(T) != item.GetType()) { continue; } ServiceList.Remove(item); } foreach (var item in ApplicationList) { if (typeof(T) != item.GetType()) { continue; } ApplicationList.Remove(item); } }
private void ExecuteDeleteMethod(object obj) { if (SelectedService.ServiceId == 0) { MessageBox.Show("서비스를 선택해주세요"); return; } _serviceRepository.DeleteService(SelectedService.ServiceId); ServiceList.Remove(SelectedService); SelectedService = new ServiceVo(); }
public void DeleteService() { ServicesDataAccess.DeleteService(SelectedService.Id); ServiceList.Remove(SelectedService); ServiceId = 0; }