private void StorePage(object sender, EventArgs e) { var Source = WebHandler.SteamStoreURL; if (SecondPage?.Source == Source) { IsPresented = false; return; } if (SecondPage == null) { SecondPage = new second_page { Source = Source } } ; else { SecondPage.Source = Source; } Detail = new NavigationPage(SecondPage); IsPresented = false; }
public mainpage1() { Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(sc.GlobalConfig.Language); InitializeComponent(); SecondPage = new second_page(); Friends = new Friends(); Detail = new NavigationPage(SecondPage); }
private void ProfilePage(object sender, EventArgs e) { Detail = new NavigationPage(SecondPage); var Source = WebHandler.SteamCommunityURL + "/my"; if (SecondPage?.Source == Source) { IsPresented = false; return; } if (SecondPage == null) { SecondPage = new second_page { Source = Source } } ; SecondPage.Source = Source; IsPresented = false; }
public void OpenWebPage(string uri) { if (SecondPage?.Source == uri) { IsPresented = false; SecondPage.Refresh(); return; } if (SecondPage == null) { SecondPage = new second_page { Source = uri } } ; else { Device.BeginInvokeOnMainThread(() => SecondPage.Source = uri); } Detail = new NavigationPage(SecondPage); IsPresented = false; }