Example #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.ListViewMainLayout);

            // Data from previous activity
            myID          = Intent.GetIntExtra("myID", -1);
            message       = Intent.GetBooleanExtra("messages", false);
            photo         = Intent.GetBooleanExtra("photos", false);
            sendData      = Intent.GetBooleanExtra("sendData", false);
            HealthHistory = Intent.GetBooleanExtra("HealthHistory", false);
            patientData   = Intent.GetBooleanExtra("patientData", false);
            Allergy       = Intent.GetBooleanExtra("Allergy", false);
            newvisit      = Intent.GetBooleanExtra("newvisit", false);

            myList   = FindViewById <ListView>(Resource.Id.listView);
            Cadapter = new CustomAdapter2(contactsPerson2);

            RetrieveData retrieve = new RetrieveData();  // retrieve "IsDoctor"

            IsDoctor = retrieve.RetreiveBool();

            Actions();

            myList.Adapter    = new CustomAdapter2(contactsPerson2);
            myList.ItemClick += MyList_ItemClick;
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.ImagesList);

            //Data from Previous Activity
            myID = Intent.GetIntExtra("myID", -1);


            myList    = FindViewById <ListView>(Resource.Id.listViewImages);
            imageView = FindViewById <ImageView>(Resource.Id.imageViewV);

            Adapt = new CustomAdapter2(contactsPerson2);

            Actions();

            myList.Adapter    = new CustomAdapter2(contactsPerson2);
            myList.ItemClick += MyList_ItemClick;
        }