Example #1
0
 public override Android.Support.V4.App.Fragment GetItem(int position)
 {
     if (position == 0)
     {
         return(LoginActivity.NewInstance(position, db));
     }
     else
     {
         return(RegistrationActivity.NewInstance(position, db));
     }
 }
Example #2
0
        public static LoginActivity NewInstance(int position, DataBase dataBase)
        {
            db = dataBase;

            var f = new LoginActivity();
            var b = new Bundle();

            b.PutInt("position", position);
            f.Arguments = b;

            return(f);
        }