Esempio n. 1
0
 private void client_SaveActorCompleted(object sender, SaveActorCompletedEventArgs e)
 {
     try
     {
         if (e.Result.Success)
         {
             RdlTagCollection tags = RdlTagCollection.FromString(e.Result.TagString);
             if (tags != null)
             {
                 foreach (var actor in tags.GetActors())
                 {
                     var tile = _tiles.Where(t => t.Place.ID == actor.OwnerID).FirstOrDefault();
                     if (tile != null)
                     {
                         tile.Place.Actors.Add(actor);
                         this.PlaceChanged(new PlaceEventArgs(tile.Place));
                     }
                 }
             }
         }
     }
     finally
     {
         ctlWait.Hide();
     }
 }
Esempio n. 2
0
 private void client_SaveActorCompleted(object sender, SaveActorCompletedEventArgs e)
 {
     try
     {
         if (e.Result.Success)
         {
             RdlTagCollection tags = RdlTagCollection.FromString(e.Result.TagString);
             if (tags != null)
             {
                 foreach (var actor in tags.GetActors())
                 {
                     ctlMap.UpdateActor(actor);
                 }
             }
         }
     }
     finally
     {
         ctlWait.Hide();
     }
 }