public GuestRegBeforeLoginVM()
 {
     web           = new MasterServices((MasterI)this, (RoomListI)this);
     guestServices = new GuestServices(this);
     IsCheck1      = true;
     Check1Clicked = new Command(check1Clicked);
     Check2Clicked = new Command(check2Clicked);
     web.GetAllArea();
 }
Esempio n. 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

            gs           = new GuestServices();
            guest        = new Guest();
            mProgressBar = new ProgressDialog(this)
            {
                Indeterminate = true
            };
            mProgressBar.SetTitle("Vamk Guest");
            mProgressBar.SetMessage("Registering ...");

            mToolBar = FindViewById <Toolbar>(Resource.Id.toolBar);

            txtFirstName = FindViewById <EditText>(Resource.Id.txtFname);
            txtLastName  = FindViewById <EditText>(Resource.Id.txtLname);
            txtEmail     = FindViewById <EditText>(Resource.Id.txtEmail);

            CheckedM    = FindViewById <CheckBox>(Resource.Id.malecheckbox);
            CheckedF    = FindViewById <CheckBox>(Resource.Id.femalecheckbox);
            mHostLayout = FindViewById <LinearLayout>(Resource.Id.layout_main);
            BtnRegister = FindViewById <Button>(Resource.Id.btnregister);

            if (IsThereAnAppToTakePictures())
            {
                CreateDirectoryForPictures();
                ImageView = FindViewById <ImageView>(Resource.Id.picture);
            }

            ImageView.Visibility    = ViewStates.Gone;
            CheckedM.CheckedChange += CheckedM_CheckedChange;
            CheckedF.CheckedChange += CheckedF_CheckedChange;

            BtnRegister.Click += BtnRegister_Click;
            SetSupportActionBar(mToolBar);
        }
Esempio n. 3
0
 public ContactWardenVM()
 {
     guestServices = new GuestServices(this);
     guestServices.GetAllWardenData();
 }