fix lst view bug
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -4,5 +4,4 @@
|
||||
xmlns:local="clr-namespace:ClientList"
|
||||
x:Class="ClientList.MainPage">
|
||||
<ListView x:Name="lstView"></ListView>
|
||||
|
||||
</ContentPage>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user