Example #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.signupDep);
            college  = Intent.GetStringExtra("college") ?? "College of Science and Technology";
            name     = Intent.GetStringExtra("name") ?? "";
            title    = Intent.GetStringExtra("title") ?? "";
            password = Intent.GetStringExtra("password") ?? "";
            email    = Intent.GetStringExtra("email") ?? "";
            staffid  = Intent.GetStringExtra("staffid") ?? "";

            collss             = "\"" + college + "\"";
            departmentListView = FindViewById <ListView>(Resource.Id.departmentListView);
            depWelcmMsg        = FindViewById <TextView>(Resource.Id.departmentWelcome);
            prevButt           = FindViewById <TextView>(Resource.Id.departmentPrevious);
            db       = new DbHelper(this);
            sqliteDB = db.WritableDatabase;
            AddData();
            BasicListAdapter bookadpt = new BasicListAdapter(this, departmentlist);

            departmentListView.Adapter             = bookadpt;
            departmentListView.OnItemClickListener = this;
            prevButt.SetOnClickListener(this);
            depWelcmMsg.Text = name + "! Please let us know your Department";
        }
Example #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.signupcoll);
            name         = Intent.GetStringExtra("name") ?? "";
            title        = Intent.GetStringExtra("title") ?? "";
            password     = Intent.GetStringExtra("password") ?? "";
            email        = Intent.GetStringExtra("email") ?? "";
            staffid      = Intent.GetStringExtra("staffid") ?? "";
            collWelcmMsg = FindViewById <TextView>(Resource.Id.collWelcome);

            collegeListView = FindViewById <ListView>(Resource.Id.collegeList);
            db       = new DbHelper(this);
            sqliteDB = db.WritableDatabase;
            AddData();
            BasicListAdapter bookadpt = new BasicListAdapter(this, collegelist);

            collegeListView.Adapter             = bookadpt;
            collegeListView.OnItemClickListener = this;
            collWelcmMsg.Text = "HI " + name + "! Welcome to Flipped CU. Please let us know your College";
        }