Ejemplo n.º 1
0
 public void setPlatform(string strPlatform)
 {
     HMS.Auth.AppPlatform tmpPlatform;
     if (Enum.TryParse(strPlatform, out tmpPlatform))
     {
         this.platform = tmpPlatform;
     }
 }
Ejemplo n.º 2
0
 public static void setPlatform(string strPlatform)
 {
     HMS.Auth.AppPlatform tmpPlatform;
     if (Enum.TryParse(strPlatform, out tmpPlatform) == true)
     {
         platform = tmpPlatform;
     }
 }
Ejemplo 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();
        }
Ejemplo n.º 4
0
 public App(HMS.Auth.AppPlatform platform, HMS.Auth.IHttpClient hmsClient)
 {
     init(platform, hmsClient);
 }
Ejemplo n.º 5
0
 public App(HMS.Auth.AppPlatform platform)
 {
     init(platform, null);
 }
Ejemplo n.º 6
0
 public void setPlatform(HMS.Auth.AppPlatform platform)
 {
     this.platform = platform;
 }