public CommandList() { player = MainWindowViewModel.GetPlayerVM(); //init commands xDoc = XDocument.Load(path + "/Data/Commands.xml"); AddAnswersFromXAML(); }
/// <summary> /// Initializes a new instance of the <see cref="T:adaptive.Pages.MainPage"/> class. /// </summary> /// <param name="model">MoPlayerPageayerPage public PlayerPage(PlayerPageViewModel model) : base(model) public PlayerPage(PlayerPageViewModel model) : base(model) { BindingContext = model; _model = model; InitializeComponent(); }
public TelegramBot() { log = MainWindowViewModel.GetLogVM(); mp = MainWindowViewModel.GetMainVM(); player = MainWindowViewModel.GetPlayerVM(); ph = MainWindowViewModel.GetProxyHelper(); //CreateConnection(); ////NULL EXCEPTION //if (Bot != null) //{ // Bot.OnCallbackQuery += BotOnCallbackQueryReceived; // Bot.OnMessage += BotOnMessageReceived; // Bot.OnMessageEdited += BotOnMessageReceived; //} }