public EventDetailsPage GetById(int id, int userBaseId) { EventDetailsPage eventDetails = new EventDetailsPage(); DataProvider.ExecuteCmd("dbo.events_selecteventbyid", inputParamMapper : delegate(SqlParameterCollection paramCollection) { paramCollection.AddWithValue("@Id", id); paramCollection.AddWithValue("@UserBaseId", userBaseId); }, singleRecordMapper: (IDataReader reader, short set) => { eventDetails = (Tools.DataMapper <EventDetailsPage> .Instance.MapToObject(reader)); //What is tools? }); return(eventDetails); }
private DropdownMenuPage buildDropdownMenu(Sensor i_Sensor) { return(DropdownMenuPage.FactoryMethod().AddActionItem(new Tuple <string, Action>( "Live", async() => { eventsRouter(this, null); EventDetailsPage eventDetailsPageBuf = null; await Task.Factory.StartNew(() => { eventDetailsPageBuf = new EventDetailsPage(i_Sensor); eventDetailsPageBuf.RaiseContentViewUpdateEvent += eventsRouter; }); eventsRouter(this, new UpdatedContentEventArgs( UpdatedContentEventArgs.EContentUpdateType.Push, eventDetailsPageBuf, eventDetailsPageBuf.BindableViewModel)); })) .AddActionItem(new Tuple <string, Action>( "Health", () => eventsRouter(this, new UpdatedContentEventArgs( UpdatedContentEventArgs.EContentUpdateType.Push, new HealthStatPage())))).Build()); }
public App() { InitializeComponent(); MainPage = new EventDetailsPage(); }