public void HandleIdentificationSuccessMessage(Bot bot, IdentificationSuccessMessage message) { if (Parent != null) { Parent.Title = message.nickname; } }
void Bot_CharacterSelected(Bot bot, Behaviors.Game.Actors.RolePlay.PlayedCharacter character) { if (Parent != null) { Parent.Title = bot.Character.Name; } }
//private readonly ReadOnlyObservableCollectionMT<object> m_readOnlyDocuments; public BotViewModel(Bot bot) { Bot = bot; bot.Dispatcher.RegisterNonShared(this); Bot.CharacterSelected += Bot_CharacterSelected; }
private void OnClosing(object sender, CancelEventArgs e) { Bot.Dispose(); }