public void Do() { View = "There should be MOTD!"; appManager.RunOnUIThread(() => { xCardsManager.Register(this); }); }
public void EntryPoint(IAppManager appManager, IXCardsManager xCardsManager) { return; appManager.RunOnUIThread(() => { xCardsManager.Register(new AdCard()); }); }
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); } }
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; } }
public void EntryPoint(IXCardsManager xCardsManager, IBaseApi baseApi) { xCardsManager.Register(new DonateCard(() => baseApi.UnstableInternalApiCall("show_donate_window"))); }