/// <summary> /// Entire record refresh. /// </summary> public void EntireRefresh() { // TODO Here we have a bug. If i change Display name Controller doesn't refresh it, so we retake service Controller = ServiceController.GetServices().Single(s => s.ServiceName == Controller.ServiceName); WinServiceUtils.TryGetServiceConfig(Controller.ServiceName, out _serviceConfig); RaisePropertiesChanged(); }
/// <summary> /// Constructor for <see cref="ServiceModel"/>. /// </summary> public ServiceModel(ServiceController service) { Controller = service; WinServiceUtils.TryGetServiceConfig(Controller.ServiceName, out _serviceConfig); }