コード例 #1
0
        // Token: 0x06002A7A RID: 10874 RVA: 0x000C2724 File Offset: 0x000C0924
        internal void RaiseTypedReturnEvent(PageFunctionBase b, RaiseTypedEventArgs args)
        {
            Delegate d = args.D;
            object   o = args.O;

            if (d != null)
            {
                ReturnEventArgs <T>    e = o as ReturnEventArgs <T>;
                ReturnEventHandler <T> returnEventHandler = d as ReturnEventHandler <T>;
                returnEventHandler(this, e);
            }
        }
コード例 #2
0
        ///<summary>
        /// Used to raise a strongly typed return event. Sealed since nobody should have the need to override as
        /// all derived types of this generic type will automatically get the strongly typed version from this
        /// generic version.
        ///</summary>
        internal void RaiseTypedReturnEvent(PageFunctionBase b, RaiseTypedEventArgs args)
        {
            Delegate d = args.D;
            object   returnEventArgs = args.O;

            if (d != null)
            {
                ReturnEventArgs <T> ra = returnEventArgs as ReturnEventArgs <T>;

                Debug.Assert((returnEventArgs == null) || (ra != null));

                ReturnEventHandler <T> eh = d as ReturnEventHandler <T>;

                Debug.Assert(eh != null);

                eh(this, ra);
            }
        }
 protected virtual new void OnReturn(ReturnEventArgs <T> e)
 {
 }
コード例 #4
0
 /// <summary>A <see cref="T:System.Windows.Navigation.PageFunction`1" /> calls <see cref="M:System.Windows.Navigation.PageFunction`1.OnReturn(System.Windows.Navigation.ReturnEventArgs{`0})" /> to return to the caller, passing a return value via a <see cref="T:System.Windows.Navigation.ReturnEventArgs`1" /> object</summary>
 /// <param name="e">A <see cref="T:System.Windows.Navigation.ReturnEventArgs`1" /> object that contains the <see cref="T:System.Windows.Navigation.PageFunction`1" /> return value (<see cref="P:System.Windows.Navigation.ReturnEventArgs`1.Result" />).</param>
 // Token: 0x06002A79 RID: 10873 RVA: 0x000C2719 File Offset: 0x000C0919
 protected virtual void OnReturn(ReturnEventArgs <T> e)
 {
     base._OnReturnUnTyped(e);
 }