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 }
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(); } } }
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(); } } }
public CSIBaseGridViewerAdapter(CSIBaseActivity activity, GridView gridView) : base(activity?.GetCSISystemContext()) { GridView = gridView; Activity = activity; }