internal void LoadUIControls() { if (ServiceSelectors != null && ServiceSelectors.Any()) { ServiceSelectors.Apply(box => { box.Checked -= ServiceBoxOnCheckChanged; box.Unchecked -= ServiceBoxOnCheckChanged; }); } ServiceSelectors = new ObservableCollection <CheckBox>(AvailableServices.OrderBy(service => service.Order).Select(service => service.GetServiceSelector())); ServiceSelectors.Apply(box => { box.Checked += ServiceBoxOnCheckChanged; box.Unchecked += ServiceBoxOnCheckChanged; }); LoadExternalSettings(); LoadBuildProperties(); LoadBuildTargets(); }