public MainPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; }
public SearchPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; if (MainPage.SplunkService != null) { UserName1.Text = string.Format("User: "******" {0}", loginUser); HostName1.Text = string.Format("Server:"); HostName2.Text = string.Format(" {0}", MainPage.SplunkService.Server.Context.Host); } }