Exemplo n.º 1
0
        private void OnGateCampIndexChanged(GateCampMessageModel gatecamp)
        {
            var gateCampToChange = _gateCamps.FirstOrDefault(x => x.StargateLocations.HasIntersection(gatecamp.StargateLocations));

            if (gateCampToChange != null)
            {
                gateCampToChange.StargateLocations = gateCampToChange.StargateLocations;
                gateCampToChange.GateCampIndex     = gatecamp.GateCampIndex;
                Application.Current.Dispatcher.BeginInvoke(new Action(() => { GateCampIndexChanged?.Invoke(gateCampToChange); }));
            }
        }
Exemplo n.º 2
0
 private void OnGateCampIndexChanged(GateCamp gatecamp)
 {
     GateCampIndexChanged?.Invoke(gatecamp);
 }