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 CSIMessageDialog(int TitleResourceID, int MessageTitleResourceID, DialogTypes DialogType = DialogTypes.OKCancel, CSIBaseActivity activity = null) : base(activity) { Title = GetString(TitleResourceID); Message = GetString(MessageTitleResourceID); DefaultType = DialogType; }
public CSIMessageDialog(string DialogTitle, String DialogMessage, DialogTypes DialogType = DialogTypes.OKCancel, CSIBaseActivity activity = null) : base(activity) { Title = DialogTitle; Message = DialogMessage; DefaultType = DialogType; }
public CSIBaseGridViewerAdapter(CSIBaseActivity activity, GridView gridView) : base(activity?.GetCSISystemContext()) { GridView = gridView; Activity = activity; }
public CSIBaseFullScreenDialogFragment(CSIBaseActivity activity = null) : base(activity) { }