Intersoft ClientUI Documentation
DelegateCommand<T> Constructor(Action<T>,Func<T,Boolean>)
See Also  Send Feedback
Intersoft.Client.Framework.Input Namespace > DelegateCommand<T> Class > DelegateCommand<T> Constructor : DelegateCommand<T> Constructor(Action<T>,Func<T,Boolean>)






executeMethod
canExecuteMethod

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal executeMethod As Action(Of T), _
   ByVal canExecuteMethod As Func(Of T,Boolean) _
)
Visual Basic (Usage)Copy Code
Dim executeMethod As Action(Of T)
Dim canExecuteMethod As Func(Of T,Boolean)
 
Dim instance As New DelegateCommand(Of T)(executeMethod, canExecuteMethod)
C# 
public DelegateCommand<T>( 
   Action<T> executeMethod,
   Func<T,bool> canExecuteMethod
)
Delphi 
public DelegateCommand<T>( 
    executeMethod: Action;
    canExecuteMethod: Func
); 
JScript 
public function DelegateCommand<T>( 
   executeMethod : Action,
   canExecuteMethod : Func
);
Managed Extensions for C++ 
public: DelegateCommand<T>( 
   Action<T*>* executeMethod,
   Func<T*,bool>* canExecuteMethod
)
C++/CLI 
public:
DelegateCommand<T>( 
   Action<T^>^ executeMethod,
   Func<T^,bool>^ canExecuteMethod
)

Parameters

executeMethod
canExecuteMethod

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.