상속: Xamarin.Forms.ContentPage
        public App()
        {
            //Validate configuration on AppSettings.cs has been changed
            if (AppSettings.account.StartsWith("your-cloudant") || AppSettings.username.StartsWith("your-cloudant") || AppSettings.password.StartsWith("your-cloudant"))
            {
                MainPage = new ConfigErrorPage("To run this sample, you must first modify AppSettings.cs to provide your Cloudant account.");
            }
            else
            {
                try
                {
                    CloudantClient client = new CloudantClientBuilder(AppSettings.account)
                    {
                        username = AppSettings.username,
                        password = AppSettings.password
                    }.GetResult();

                    MainPage = new HomePage(client);
                }
                catch (Exception e)
                {
                    MainPage = new ConfigErrorPage("Unable to create a CloudantClient. One or more account parameter in AppSettings.cs is incorrect. " + e.Message);
                }
            }
        }
        public App()
        {
            //Validate configuration on AppSettings.cs has been changed
            if (AppSettings.account.StartsWith("your-cloudant") || AppSettings.username.StartsWith("your-cloudant") || AppSettings.password.StartsWith("your-cloudant"))
                MainPage = new ConfigErrorPage("To run this sample, you must first modify AppSettings.cs to provide your Cloudant account.");
            else
            {
                try
                {
                    CloudantClient client = new CloudantClientBuilder(AppSettings.account)
                    {
                        username = AppSettings.username,
                        password = AppSettings.password
                    }.GetResult();

                    MainPage = new HomePage(client);

                }
                catch (Exception e)
                {
                    MainPage = new ConfigErrorPage("Unable to create a CloudantClient. One or more account parameter in AppSettings.cs is incorrect. " + e.Message);
                }
            }
        }