Пример #1
0
 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)));
 }
Пример #2
0
        void update(bool raiseEvent = true)
        {
            SetPaths();

            TryReadSteamConfig();

            SteamHelper = new SteamHelper(SteamConfig, GetSteamPath());

            if (raiseEvent)
            {
                CalculatedGameSettings.RaiseEvent(new LocalMachineInfoChanged());
            }
        }
Пример #3
0
        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));
        }