protected void RaceDriver_ItemCommand(object sender, ListViewCommandEventArgs e) { //int raceid; //int.Parse(raceid) = (RaceListView.SelectedValue); MessageUserControl.TryRun(() => { DriverController sysmgr = new DriverController(); //List<RaceDetail> datainfo = sysmgr.RaceDetail_GetByRaceID(raceid); //RaceListView.DataSourceID = null; //DriverListView.DataSource = datainfo; RaceRosterPanel.Visible = true; DriverListView.DataBind(); }); }
public DriverListTabletView(object parameter) { Title = "Drivers"; Parameter = parameter; Master = new DriverListView(null); Detail = new ContentPage { Content = new StackLayout { VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.Center, Children = { new Label { Text = "Select a Driver", FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)) } } } }; ((DriverListView)Master).ItemSelected = (driver) => { Detail = new DriverDetailView(driver); if (Device.OS != TargetPlatform.Windows) { IsPresented = false; } }; IsPresented = true; }