public NewsFrame(LauncherApp app)
    {
        this.app = app;
        this.ReloadNews();

        this.bannerTimer = new Timer(TimerElapsed);
        bannerTimer.Change(0, BANNER_TIME);
    }
    public MainPage(LauncherApp app)
        : base(app)
    {
        this.loginFrame = new LoginFrame(this);
        this.newsFrame  = new NewsFrame(app);

        this.actionButtons = new ActionButtons();

        this.AccountSwitcher = new AccountSwitcher(app.Accounts);
        this.AccountSwitcher.AccountChanged += this.AccountSwitcherOnAccountChanged;

        this.loginFrame.OnLogin += this.ProcessLogin;
        this.actionButtons.OnSettingsButtonClicked += () => this.App.State = LauncherApp.LauncherState.Settings;

        this.Padding = new Vector2(32f, 32f);

        var savedAccount = App.Accounts.CurrentAccount;

        if (savedAccount != null)
        {
            this.SwitchAccount(savedAccount, false);
        }
    }
Exemple #3
0
 public Page(LauncherApp app)
 {
     this.App = app;
 }
 public OtpEntryPage(LauncherApp app)
     : base(app)
 {
     Program.Steam.OnGamepadTextInputDismissed += this.SteamOnOnGamepadTextInputDismissed;
 }
 public SettingsPage(LauncherApp app)
     : base(app)
 {
 }