public static CustomViewFactory getInstance() { if (mInstance == null) { mInstance = new CustomViewFactory(); } return(mInstance); }
protected override void OnCreate(Bundle savedInstanceState) { try { LayoutInflater.Factory = CustomViewFactory.getInstance(); base.OnCreate(savedInstanceState); initForm(); } catch (Exception exc) { ToolMobile.setExceptionInner(exc); var err = ToolException.unwrap(exc); Close(); Android.Widget.Toast.MakeText(this.ApplicationContext, err, Android.Widget.ToastLength.Long).Show(); } }