예제 #1
0
 public void HandleIdentificationSuccessMessage(Bot bot, IdentificationSuccessMessage message)
 {
     if (Parent != null)
     {
         Parent.Title = message.nickname;
     }
 }
예제 #2
0
 void Bot_CharacterSelected(Bot bot, Behaviors.Game.Actors.RolePlay.PlayedCharacter character)
 {
     if (Parent != null)
     {
         Parent.Title = bot.Character.Name;
     }
 }
예제 #3
0
        //private readonly ReadOnlyObservableCollectionMT<object> m_readOnlyDocuments;

        public BotViewModel(Bot bot)
        {
            Bot = bot;

            bot.Dispatcher.RegisterNonShared(this);
            Bot.CharacterSelected += Bot_CharacterSelected;
        }
예제 #4
0
 private void OnClosing(object sender, CancelEventArgs e)
 {
     Bot.Dispose();
 }