コード例 #1
0
 public override void OnCreate(Android.OS.Bundle savedInstanceState)
 {
     base.OnCreate (savedInstanceState);
     try
     {
         mCallBack = (ITimeChangedListener)TargetFragment;
     }
     catch(Java.Lang.ClassCastException) {
         throw new Java.Lang.ClassCastException ("Calling fragment must implement ");
     }
 }
コード例 #2
0
 public override void OnCreate(Android.OS.Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     try
     {
         mCallBack = (ITimeChangedListener)TargetFragment;
     }
     catch (Java.Lang.ClassCastException) {
         throw new Java.Lang.ClassCastException("Calling fragment must implement ");
     }
 }
コード例 #3
0
        /**
         * Cast the reference to {@link SlideDateTimeDialogFragment} to a
         * {@link TimeChangedListener}.
         */
        public override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            try
            {
                _callback = (ITimeChangedListener)TargetFragment;
            }
            catch (ClassCastException e)
            {
                throw new ClassCastException("Calling fragment must implement " +
                                             "TimeFragment.TimeChangedListener interface");
            }
        }
コード例 #4
0
		/**
     * Cast the reference to {@link SlideDateTimeDialogFragment} to a
     * {@link TimeChangedListener}.
     */
		public override void OnCreate (Bundle savedInstanceState)
		{
			base.OnCreate (savedInstanceState);

			try
			{
				_callback = (ITimeChangedListener) TargetFragment;
			}
			catch (ClassCastException e)
			{
				throw new ClassCastException("Calling fragment must implement " +
					"TimeFragment.TimeChangedListener interface");
			}
		}