Пример #1
0
 public void Do()
 {
     View = "There should be MOTD!";
     appManager.RunOnUIThread(() =>
     {
         xCardsManager.Register(this);
     });
 }
Пример #2
0
        public void EntryPoint(IAppManager appManager, IXCardsManager xCardsManager)
        {
            return;

            appManager.RunOnUIThread(() =>
            {
                xCardsManager.Register(new AdCard());
            });
        }
Пример #3
0
 private void DisplayTextAd(IXCardsManager xCardsManager)
 {
     try
     {
         var jsonString = webClient.DownloadString(TEXTAD);
         var card       = JsonSerializer.Deserialize <TextADCard>(jsonString);
         xCardsManager.Register(card);
     }
     catch (Exception e)
     {
         SLogger <EAutumnBoxAdFetcher> .Warn(e);
     }
 }
Пример #4
0
 public void EntryPoint(DevPanel devPanel, IXCardsManager xCardsManager, INotificationManager notificationManager)
 {
     if (!devPanel.Enable)
     {
         xCardsManager.Register(devPanel);
         notificationManager.Info("Dev Panel Is Enabled");
         devPanel.Enable = true;
     }
     else
     {
         xCardsManager.Unregister(devPanel);
         notificationManager.Warn("Dev Panel Is Disabled");
         devPanel.Enable = false;
     }
 }
Пример #5
0
 public void EntryPoint(IXCardsManager xCardsManager, IBaseApi baseApi)
 {
     xCardsManager.Register(new DonateCard(() => baseApi.UnstableInternalApiCall("show_donate_window")));
 }