示例#1
0
        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;
        }
示例#2
0
 public mainpage1()
 {
     Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(sc.GlobalConfig.Language);
     InitializeComponent();
     SecondPage = new second_page();
     Friends    = new Friends();
     Detail     = new NavigationPage(SecondPage);
 }
示例#3
0
        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;
        }
示例#4
0
        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;
        }