示例#1
0
 public override void OnCreate(Bundle savedInstanceState)
 {
     if (BaseActivity == null)
     {
         BaseActivity = (CSIBaseActivity)Activity;
         if (BaseActivity.GetCSISystemContext() == null)
         {
             CSISystemContext = new CSIContext();
         }
         else
         {
             CSISystemContext = BaseActivity.GetCSISystemContext();
         }
     }
     base.OnCreate(savedInstanceState);
     // Create your fragment here
 }
示例#2
0
 public CSIBaseFragment(CSIBaseActivity activity = null) : base()
 {
     if (activity == null)
     {
         CSISystemContext = new CSIContext();
     }
     else
     {
         BaseActivity = activity;
         if (BaseActivity.GetCSISystemContext() == null)
         {
             CSISystemContext = new CSIContext();
         }
         else
         {
             CSISystemContext = BaseActivity.GetCSISystemContext();
         }
     }
 }
示例#3
0
 public CSIBaseFragment()
 {
     if (CSISystemContext == null)
     {
         BaseActivity     = (CSIBaseActivity)Activity;
         CSISystemContext = new CSIContext();
     }
     else
     {
         if (BaseActivity.GetCSISystemContext() == null)
         {
             CSISystemContext = new CSIContext();
         }
         else
         {
             CSISystemContext = BaseActivity.GetCSISystemContext();
         }
     }
 }
 public virtual void SetBaseActivity(CSIBaseActivity activity)
 {
     if (activity == null)
     {
         CSISystemContext = new CSIContext();
     }
     else
     {
         BaseActivity = activity;
         if (BaseActivity.GetCSISystemContext() == null)
         {
             CSISystemContext = new CSIContext();
         }
         else
         {
             CSISystemContext = BaseActivity.GetCSISystemContext();
         }
     }
 }
 public CSIBaseFragmentPagerAdapter(Android.Support.V4.App.FragmentManager fm, CSIBaseActivity activity = null)
     : base(fm)
 {
     if (activity == null)
     {
         CSISystemContext = new CSIContext();
     }
     else
     {
         BaseActivity = activity;
         if (BaseActivity.GetCSISystemContext() == null)
         {
             CSISystemContext = new CSIContext();
         }
         else
         {
             CSISystemContext = BaseActivity.GetCSISystemContext();
         }
     }
 }
示例#6
0
 public CSIBaseGridViewerAdapter(CSIBaseActivity activity, GridView gridView) : base(activity?.GetCSISystemContext())
 {
     GridView = gridView;
     Activity = activity;
 }