public PackageList(RepositoryHandler handler) { _handler = handler; Items.ChangeTrackingEnabled = true; Items.ItemChanged .Where(x => x.PropertyName == "ActualDependency") .Subscribe( x => CalculatedGameSettings.RaiseEvent(new CurrentPackageChanged(x.Sender.ActualDependency))); }
void update(bool raiseEvent = true) { SetPaths(); TryReadSteamConfig(); SteamHelper = new SteamHelper(SteamConfig, GetSteamPath()); if (raiseEvent) { CalculatedGameSettings.RaiseEvent(new LocalMachineInfoChanged()); } }
void ProcessHostIp(SessionCommand session) { var currentHostIp = _hostIP == null ? null : _hostIP.ToString(); if (session.HostIP == currentHostIp && session.Hosting == _hosting) { return; } _hosting = session.Hosting; var addr = session.HostIP; _hostIP = string.IsNullOrWhiteSpace(addr) ? null : new ServerAddress(addr); CalculatedGameSettings.RaiseEvent(new MyActiveServerAddressChanged(_hostIP)); }