public NewsPage() { this.InitializeComponent(); viewModel.InitAction(); NewsFrame.Navigate(typeof(BlankPage)); }
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); } }