예제 #1
0
        private void OnGateCampRemoved(GateCampMessageModel gatecamp)
        {
            lock (this)
            {
                var gateCampToRemove = _gateCamps.FirstOrDefault(x => x.StargateLocations.HasIntersection(gatecamp.StargateLocations));
                if (gateCampToRemove != null)
                {
                    _gateCamps.Remove(gateCampToRemove);

                    Application.Current.Dispatcher.BeginInvoke(new Action(() => { GateCampRemoved?.Invoke(gateCampToRemove); }));
                }
            }
        }
예제 #2
0
 private void OnGateCampRemoved(GateCamp gatecamp)
 {
     GateCampRemoved?.Invoke(gatecamp);
 }