/// <summary> /// Remove a handler for the given source's event. /// </summary> public static void RemoveHandler(IAppInstanceData source, EventHandler <PropertyChangedEventArgs <CultureInfo> > handler) { if (source == null) { throw new ArgumentNullException(nameof(source)); } if (handler == null) { throw new ArgumentNullException(nameof(handler)); } CurrentManager.ProtectedRemoveHandler(source, handler); }
/// <summary> /// Stop listening to the given source for the event. /// </summary> protected override void StopListening(object source) { IAppInstanceData typedSource = (IAppInstanceData)source; typedSource.CultureChanged -= OnSomeEvent; }
protected UpdaterManager(IMessageUIManager message, IFileManager file, AppUserData data, IAppInstanceData instanceData) { Message = message ?? throw new ArgumentNullException(nameof(message)); File = file ?? throw new ArgumentNullException(nameof(file)); Data = data ?? throw new ArgumentNullException(nameof(data)); InstanceData = instanceData ?? throw new ArgumentNullException(nameof(instanceData)); }
public RCPUpdaterManager(IMessageUIManager message, IFileManager file, AppUserData data, IAppInstanceData instanceData) : base(message, file, data, instanceData) { }