예제 #1
0
 ////public string newstitle1;
 ////public string newstitle2;
 ////public string newstitle3;
 ////public string linkurl1;
 ////public string linkurl2;
 ////public string linkurl3;
 ////#region properties
 ////public string NewsTitle1
 ////{
 ////    get
 ////    {
 ////        return newstitle1;
 ////    }
 ////    set
 ////    {
 ////        newstitle1 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 ////public string NewsTitle2
 ////{
 ////    get
 ////    {
 ////        return newstitle2;
 ////    }
 ////    set
 ////    {
 ////        newstitle2 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 ////public string NewsTitle3
 ////{
 ////    get
 ////    {
 ////        return newstitle3;
 ////    }
 ////    set
 ////    {
 ////        newstitle3 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 ////public string Linkurl1
 ////{
 ////    get
 ////    {
 ////        return linkurl1;
 ////    }
 ////    set
 ////    {
 ////        linkurl1 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 ////public string Linkurl2
 ////{
 ////    get
 ////    {
 ////        return linkurl2;
 ////    }
 ////    set
 ////    {
 ////        linkurl2 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 ////public string Linkurl3
 ////{
 ////    get
 ////    {
 ////        return linkurl3;
 ////    }
 ////    set
 ////    {
 ////        linkurl3 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 //#endregion
 public NewsFeedViewModel()
 {
     var profiles = Connectivity.ConnectionProfiles;
     if (profiles.Contains(ConnectionProfile.WiFi) || profiles.Contains(ConnectionProfile.Cellular))
     {
         warden = new WardenService(this);
         warden.GetNewsFeedDatalist();
     }
     else
     {
         IsResponsenotok = true;
     }
 }
예제 #2
0
        public async void Deletenewsfeedlist(string result)
        {
            await App.Current.MainPage.DisplayAlert("HMS", result, "OK");

            warden.GetNewsFeedDatalist();
        }