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