public IpHandler(Settings settings, NetworkListener listener) { _settings = settings; _listener = listener; _listener.AddressChanged += AddressChanged; _listener.Listen(); }
public NotifyViewModel(Lazy<IWindowManager> windowManager, Func<ConfigViewModel> configFactory, Settings settings, IpHandler handler) { _windowManager = windowManager; _configFactory = configFactory; _settings = settings; _handler = handler; _canUpdate = false; InitializeIcon(); Update(); }