public void Reload() { types.ListChanged -= types_ListChanged; toDelete.Clear(); toSave.Clear(); types.Clear(); converter.toClientType(this.service.readAll()) .ForEach(n => types.Add(n)); types.ListChanged += types_ListChanged; }
public void Reload() { try { types.ListChanged -= types_ListChanged; toDelete.Clear(); toSave.Clear(); types.Clear(); converter.toClientType(this.service.readAll()) .ForEach(n => types.Add(n)); types.ListChanged += types_ListChanged; } catch (Exception ex) { MessageBox.Show(ex.Message); } }