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