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