コード例 #1
0
ファイル: Voorraad.cs プロジェクト: roshniudh/EMedic
        protected override void OnCreate(Bundle savedInstanceState)
        {
            RequestWindowFeature(WindowFeatures.NoTitle);
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.voorraadScherm);

            mRegisterMedic = FindViewById <Button>(Resource.Id.Medicijn_Toe);
            //mbtnMelding = FindViewById<Button>(Resource.Id.button1);
            listnames = FindViewById <ListView>(Resource.Id.ListviewMED);
            itemlist  = DBconnect.GetList("Select * from Medicijn where email = @email", 0, EmailLogin);



            mRegisterMedic.Click += MRegisterMedic_Click;
            ArrayAdapter <string> new_adapter = new ArrayAdapter <string>(this, Android.Resource.Layout.SimpleListItem1, itemlist);

            listnames.Adapter = new_adapter;
            listnames.InvalidateViews();
            listnames.ItemClick += mbtnMelding_Click;
        }
コード例 #2
0
ファイル: Homescreen.cs プロジェクト: roshniudh/EMedic
        protected override void OnCreate(Bundle savedInstanceState)
        {
            //RequestWindowFeature(WindowFeatures.NoTitle);
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Home);
            listnames     = FindViewById <ListView>(Resource.Id.Listview);
            itemlist      = DBconnect.GetList("Select medicijn from Melding where email = @email ", 0, EmailLogin);
            mbtnAfspraken = FindViewById <Button>(Resource.Id.afspraken);
            Profile       = FindViewById <Button>(Resource.Id.user);
            Voorraad      = FindViewById <Button>(Resource.Id.supplies);

            mbtnAfspraken.Click += MbtnAfspraken_Click;
            Profile.Click       += Profile_Click;
            Voorraad.Click      += Voorraad_Click;

            ArrayAdapter <string> new_adapter = new ArrayAdapter <string>(this, Android.Resource.Layout.SimpleListItem1, itemlist);

            listnames.Adapter = new_adapter;
            listnames.InvalidateViews();
        }
コード例 #3
0
ファイル: Afspraken.cs プロジェクト: roshniudh/EMedic
        protected override void OnCreate(Bundle savedInstanceState)
        {
            RequestWindowFeature(WindowFeatures.NoTitle);

            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.afspraken);
            listnames = FindViewById <ListView>(Resource.Id.ListviewAfspraken);
            itemlist  = DBconnect.GetList("select * from Afspraken where email = @email", 0, EmailLogin);

            ArrayAdapter <string> new_adapter = new ArrayAdapter <string>(this, Android.Resource.Layout.SimpleListItem1, itemlist);

            listnames.Adapter = new_adapter;

            mbtnAfspraken = FindViewById <Button>(Resource.Id.afspraken);

            mbtnAfspraken.Click += (object sender, EventArgs e) =>
            {
                FragmentTransaction transaction = FragmentManager.BeginTransaction();
                dialog_afspraken    aardappels  = new dialog_afspraken();
                aardappels.Show(transaction, "dialog afspraken");

                aardappels.mOnafspraakConplete += Aardappels_mOnafspraakConplete;
            };
        }