Beispiel #1
0
        private void FindRelatives_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            ShowLoading();

            try
            {
                if (e.Parameter is UltimaPacket && e.Parameter is IUltimaEntity)
                {
                    IUltimaEntity entity = (IUltimaEntity)e.Parameter;

                    RelativesWindow window = new RelativesWindow();
                    window.Packet    = (UltimaPacket)e.Parameter;
                    window.Relatives = _SpyHelper.FindEntities(entity.Serial);
                    window.WireEvents(_SpyHelper);
                    window.Show();
                }
            }
            catch (Exception ex)
            {
                ShowNotification(NotificationType.Error, ex);
            }

            HideLoading();
        }
Beispiel #2
0
        private void FindRelatives_Executed( object sender, ExecutedRoutedEventArgs e )
        {
            ShowLoading();

            try
            {
                if ( e.Parameter is UltimaPacket && e.Parameter is IUltimaEntity )
                {
                    IUltimaEntity entity = (IUltimaEntity) e.Parameter;

                    RelativesWindow window = new RelativesWindow();
                    window.Packet = (UltimaPacket) e.Parameter;
                    window.Relatives = _SpyHelper.FindEntities( entity.Serial );
                    window.WireEvents( _SpyHelper );
                    window.Show();

                }
            }
            catch ( Exception ex )
            {
                ShowNotification( NotificationType.Error, ex );
            }

            HideLoading();
        }