Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <see cref="WinFormsHelper.InvokeSafe{TCtrl, TState}(TCtrl, Action{TCtrl, TState}, Func{TCtrl, TState})" />
 public static void InvokeSafe <TCtrl, TState>(this TCtrl ctrl,
                                               Action <TCtrl, TState> action,
                                               Func <TCtrl, TState> actionStateFactory) where TCtrl : global::System.Windows.Forms.Control
 {
     WinFormsHelper.InvokeSafe <TCtrl, TState>(ctrl,
                                               action, actionStateFactory);
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <see cref="WinFormsHelper.InvokeSafe{TCtrl, TState, TResult}(TCtrl, Func{TCtrl, TState, TResult}, Func{TCtrl, TState})" />
 public static TResult InvokeSafe <TCtrl, TState, TResult>(this TCtrl ctrl,
                                                           Func <TCtrl, TState, TResult> func,
                                                           Func <TCtrl, TState> funcStateFactory) where TCtrl : global::System.Windows.Forms.Control
 {
     return(WinFormsHelper.InvokeSafe <TCtrl, TState, TResult>(ctrl,
                                                               func, funcStateFactory));
 }
Пример #3
0
        // Public Methods (6) 

        /// <summary>
        ///
        /// </summary>
        /// <see cref="WinFormsHelper.InvokeSafe{TCtrl}(TCtrl, Action{TCtrl})" />
        public static void InvokeSafe <TCtrl>(this TCtrl ctrl,
                                              Action <TCtrl> action) where TCtrl : global::System.Windows.Forms.Control
        {
            WinFormsHelper.InvokeSafe <TCtrl>(ctrl,
                                              action);
        }