Esempio n. 1
0
 public void setPlatform(string strPlatform)
 {
     HMS.Auth.AppPlatform tmpPlatform;
     if (Enum.TryParse(strPlatform, out tmpPlatform))
     {
         this.platform = tmpPlatform;
     }
 }
Esempio n. 2
0
 public static void setPlatform(string strPlatform)
 {
     HMS.Auth.AppPlatform tmpPlatform;
     if (Enum.TryParse(strPlatform, out tmpPlatform) == true)
     {
         platform = tmpPlatform;
     }
 }
Esempio n. 3
0
        public void init(HMS.Auth.AppPlatform platform, HMS.Auth.IHttpClient hmsClient)
        {
            this.platform  = platform;
            this.hmsClient = hmsClient;

            lbl = new Label
            {
                HorizontalTextAlignment = TextAlignment.Center,
                Text = "Welcome to Xamarin Forms!"
            };
            // The root page of your application
            var content = new ContentPage
            {
                Title   = "App1",
                Content = new StackLayout
                {
                    VerticalOptions = LayoutOptions.Center,
                    Children        = { lbl }
                }
            };

            MainPage = new NavigationPage(content);
            update();
        }
Esempio n. 4
0
 public App(HMS.Auth.AppPlatform platform, HMS.Auth.IHttpClient hmsClient)
 {
     init(platform, hmsClient);
 }
Esempio n. 5
0
 public App(HMS.Auth.AppPlatform platform)
 {
     init(platform, null);
 }
Esempio n. 6
0
 public void setPlatform(HMS.Auth.AppPlatform platform)
 {
     this.platform = platform;
 }