示例#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));
     }
 }
示例#2
0
        public static RegistrationActivity NewInstance(int position, DataBase dataBase)
        {
            db = dataBase;

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

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

            return(f);
        }