///////////////////////////////////////////loadDataIntoCombo/////////////////////////////////////////// //Koen public void insertDivisionIntoComboBox() { var divisions = _dataservice.getAllDivisions(); Divisions.Clear(); foreach (var division in divisions) { Divisions.Add(division); } }
protected override void OnRemoving() { base.OnRemoving(); try { Divisions.Clear(); //foreach thing in Divisions en.Remove(); } catch (Exception ex) { throw new DocException("Failed to delete Client in Divisions delete", ex); } try { Projects.Clear(); //foreach thing in Projects en.Remove(); } catch (Exception ex) { throw new DocException("Failed to delete Client in Projects delete", ex); } FlushCache(); }