Exemple #1
0
        protected virtual void OnClosePage(PageCloseArgs e)
        {
            // Make a temporary copy of the event to avoid possibility of
            // a race condition if the last subscriber unsubscribes
            // immediately after the null check and before the event is raised.
            EventHandler <PageCloseArgs> handler = ClosePage;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #2
0
 protected override void OnClosePage(PageCloseArgs e)
 {
     base.OnClosePage(e);
 }