Пример #1
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();

            App.isFromAddParticipantPage = true;

            thisVm = new MessageReplayViewModel();
            this.BindingContext = thisVm;

            //if (Application.Current.Properties.ContainsKey("USERID"))
            //{
            //    userId = Convert.ToString(Application.Current.Properties["USERID"]);
            //}
            //if (Application.Current.Properties.ContainsKey("PARTYNAME"))
            //{
            //    txtPartyName = Convert.ToString(Application.Current.Properties["PARTYNAME"]);
            //    lblPartyName.Text = txtPartyName;
            //}
            //if (Application.Current.Properties.ContainsKey("TOPIC"))
            //{
            //    txtTopic = Convert.ToString(Application.Current.Properties["TOPIC"]);
            //    lblTopic.Text = txtTopic;
            //}

            if (NetworkCheck.IsInternet())
            {
                await thisVm.GetData();

                await thisVm.GetThreadUsersData();
            }
            else
            {
                await DisplayAlert("Simon", "No network is available.", "OK");
            }
        }
        protected async override void OnAppearing()
        {
            base.OnAppearing();

            App.IsFromAddParticipantPage = true;

            thisVm = new MessageReplayViewModel();
            this.BindingContext = thisVm;

            if (NetworkCheck.IsInternet())
            {
                await thisVm.GetData();

                await thisVm.GetThreadUsersData();
            }
            else
            {
                await DisplayAlert("Simon", "No network is available.", "OK");
            }
        }