private void Recommended_OnClicked_OnClicked(object sender, EventArgs e) { var device = Resolver.Resolve <IDevice>(); var oNetwork = device.Network; var xx = oNetwork.InternetConnectionStatus() == NetworkStatus.NotReachable; if (xx == false) { try { ChatFriendsListview.IsVisible = true; var ss = Functions.GetRandomUsers().ConfigureAwait(false); } catch { } } ChatFriendsListview.ItemsSource = Functions.SearchFilterlist; ChatFriendsListview.EndRefresh(); }
private void ChatFriendsListview_OnRefreshing(object sender, EventArgs e) { var device = Resolver.Resolve <IDevice>(); var oNetwork = device.Network; var xx = oNetwork.InternetConnectionStatus() == NetworkStatus.NotReachable; if (xx == false) { try { this.Title = AppResources.Label_Loading; var ss = Functions.GetRandomUsers().ConfigureAwait(false); } catch { } } ChatFriendsListview.ItemsSource = Functions.SearchFilterlist; ChatFriendsListview.EndRefresh(); }
private void Sync_OnClicked_OnClicked(object sender, EventArgs e) { var device = Resolver.Resolve <IDevice>(); var oNetwork = device.Network; var xx = oNetwork.InternetConnectionStatus() == NetworkStatus.NotReachable; if (xx == false) { try { ChatFriendsListview.IsVisible = true; this.Title = AppResources.Label_Loading; Functions.SyncContactsFromPhone().ConfigureAwait(false); } catch { } } ChatFriendsListview.ItemsSource = Functions.SearchFilterlist; ChatFriendsListview.EndRefresh(); }