Exemplo n.º 1
0
 public static IDispatcher Create(Dispatcher dispatcher)
 {
     IDispatcher result = null;
     #if SILVERLIGHT
     result = new SilverlightDispatcher(dispatcher);
     #else
     result = new WpfDispatcher(dispatcher);
     #endif
     return result;
 }
Exemplo n.º 2
0
        public static IDispatcher Create(Dispatcher dispatcher)
        {
            IDispatcher result = null;

            if (dispatcher != null)
            {
                result = new WpfDispatcher(dispatcher);
            }
            return(result);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Creates the specified dispatcher.
        /// </summary>
        /// <param name="dispatcher">The dispatcher.</param>
        /// <returns>The correct IDispatcher.</returns>
        public static IDispatcher Create(Dispatcher dispatcher)
        {
            IDispatcher result = null;

            if (dispatcher != null)
            {
#if SILVERLIGHT
                result = new SilverlightDispatcher(dispatcher);
#else
                result = new WpfDispatcher(dispatcher);
#endif
            }
            return(result);
        }