Exemple #1
0
        private async Task getData()
        {
            var Wait = UserDialogs.Instance.Loading("Wait...", Cancel(), "Cancel", true, MaskType.Black);

            Wait.Show();
            JObject result = await IAllDataServices_data.GetAdminInfo();

            if (result != null)
            {
                string type = result["Type"].ToString();

                if (type == "1")
                {
                    _CompanyName = (string)result["Result"]["Company_Name1"];
                    _ContectNo   = (string)result["Result"]["Mobile_No"] + ',' + (string)result["Result"]["Alternate_MobileNo"];
                    _Address     = (string)result["Result"]["Address"];
                    _MailId      = (string)result["Result"]["Email_ID"];
                    _OwnerName   = (string)result["Result"]["Owner_Name1"];
                }
                else
                {
                    await App.Current.MainPage.DisplayAlert("Error!", (string)result["ResponseMessage"], "Ok");
                }
            }
            else
            {
                await App.Current.MainPage.DisplayAlert("Oops!", "Please Refresh Page And try Again....", "Ok");
            }
            Wait.Dispose();
        }