Exemple #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            /* Layout attributen toewijzen aan code */
            SetContentView(Resource.Layout.Main);
            mBtnLogin      = FindViewById <Button>(Resource.Id.btn_login);
            mBtnRegistreer = FindViewById <Button>(Resource.Id.btn_registreer);
            mProgressbar   = FindViewById <ProgressBar>(Resource.Id.progressBar1);

            /* Click events */
            mBtnLogin.Click += (object sender, EventArgs args) =>
            {
                FragmentTransaction transaction = FragmentManager.BeginTransaction();
                Dialog_inloggen     inlogdialog = new Dialog_inloggen();
                inlogdialog.Show(transaction, "dialog fragment");

                inlogdialog.logincompleet += Inlogdialog_logincompleet;
            };
            mBtnRegistreer.Click += (object sender, EventArgs args) => //Click methode in zelfde methode
            {
                // dialog weergeven
                FragmentTransaction transaction = FragmentManager.BeginTransaction();
                Dialog_registreer   regdialog   = new Dialog_registreer();
                regdialog.Show(transaction, "dialog fragment");

                regdialog.registreerCompleet += Regdialog_registreerCompleet;
            };
        }
Exemple #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            /* Layout attributen toewijzen aan code */
            SetContentView(Resource.Layout.Main);
            mBtnLogin = FindViewById<Button>(Resource.Id.btn_login);
            mBtnRegistreer = FindViewById<Button>(Resource.Id.btn_registreer);
            mProgressbar = FindViewById<ProgressBar>(Resource.Id.progressBar1);

            /* Click events */
            mBtnLogin.Click += (object sender, EventArgs args) =>
            {
                FragmentTransaction transaction = FragmentManager.BeginTransaction();
                Dialog_inloggen inlogdialog = new Dialog_inloggen();
                inlogdialog.Show(transaction, "dialog fragment");

                inlogdialog.logincompleet += Inlogdialog_logincompleet;

            };
            mBtnRegistreer.Click += (object sender, EventArgs args) => //Click methode in zelfde methode
            {
                // dialog weergeven
                FragmentTransaction transaction = FragmentManager.BeginTransaction();
                Dialog_registreer regdialog = new Dialog_registreer();
                regdialog.Show(transaction, "dialog fragment");

                regdialog.registreerCompleet += Regdialog_registreerCompleet;
            };
        }