fix lst view bug

This commit is contained in:
Tommy Parnell
2016-11-20 17:06:05 -05:00
parent 7f073141dd
commit dc981a0840
3 changed files with 8 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ namespace ClientList
MobileServiceClient client;
IMobileServiceSyncTable<Client> todoTable;
public static string ClientUrl {get{throw new NotImplementedException();}}
public static string ClientUrl {get{ throw new NotImplementedException(); }}
public static ObservableCollection<Client> Clients { get; set; } = new ObservableCollection<Client>() { };
private Db()
{

View File

@@ -4,5 +4,4 @@
xmlns:local="clr-namespace:ClientList"
x:Class="ClientList.MainPage">
<ListView x:Name="lstView"></ListView>
</ContentPage>

View File

@@ -46,10 +46,15 @@ namespace ClientList
this.lstView.ItemSelected += (item, d) =>
{
var idt = (ListView)item;
if(idt.SelectedItem == null) return;
this.Navigation.PushAsync(new NewClient((Client)idt.SelectedItem));
};
Db.DefaultManager.GetClientsAsync(true);
Db.DefaultManager.GetClientsAsync(true);
}
protected override void OnAppearing()
{
this.lstView.SelectedItem = null;
}
}
}