зеркало из https://github.com/xamarin/ios-samples.git
[ReachabilitySample] Actually listen for changed events, and update the UI accordingly.
This commit is contained in:
Родитель
6ec139bae6
Коммит
6e3f89f376
|
@ -16,6 +16,7 @@ namespace reachability {
|
|||
{
|
||||
AddTable ();
|
||||
UpdateStatus ();
|
||||
Reachability.ReachabilityChanged += (object sender, EventArgs e) => { UpdateStatus (); };
|
||||
|
||||
window.MakeKeyAndVisible ();
|
||||
|
||||
|
@ -27,6 +28,7 @@ namespace reachability {
|
|||
remoteHostStatus = Reachability.RemoteHostStatus ();
|
||||
internetStatus = Reachability.InternetConnectionStatus ();
|
||||
localWifiStatus = Reachability.LocalWifiConnectionStatus ();
|
||||
tableView.ReloadData ();
|
||||
}
|
||||
|
||||
void AddTable ()
|
||||
|
|
Загрузка…
Ссылка в новой задаче