Beispiel #1
0
 public CommandList()
 {
     player = MainWindowViewModel.GetPlayerVM();
     //init commands
     xDoc = XDocument.Load(path + "/Data/Commands.xml");
     AddAnswersFromXAML();
 }
Beispiel #2
0
        /// <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();
        }
Beispiel #3
0
        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;
            //}
        }