Exemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            // Create your application here
            EventID = Intent.GetIntExtra ("EventID", -1);
            SetContentView (Resource.Layout.EventPerson);

            attendeeListView = FindViewById<ListView> (Resource.Id.listViewAttendees);
            eventDetail = FindViewById<TableLayout> (Resource.Id.tableEventDetail);
            repo = new EventRepository ();
            this.ActionBar.SetDisplayHomeAsUpEnabled (true);
        }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            // Set our view from the "main" layout resource
            SetContentView (Resource.Layout.Main);

            //var eventListView = FindViewById<ListView>(Resource.Id.listView1);

            // Get our button from the layout resource,
            // and attach an event to it
            //Button button = FindViewById<Button> (Resource.Id.listView1);

            //button.Click += delegate {
            //	button.Text = string.Format ("{0} clicks!", count++);
            //};
            eventListView = FindViewById<ListView> (Resource.Id.listView1);

            repo = new EventRepository ();
            repo.CreateSampleData ();
        }