예제 #1
0
파일: CommandList.cs 프로젝트: str1py/Ducky
 public CommandList()
 {
     player = MainWindowViewModel.GetPlayerVM();
     //init commands
     xDoc = XDocument.Load(path + "/Data/Commands.xml");
     AddAnswersFromXAML();
 }
예제 #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();
        }
예제 #3
0
파일: TelegramBot.cs 프로젝트: str1py/Ducky
        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;
            //}
        }