public TCommand ReadDataBase
{
get
{
return new TCommand
(
(obj) =>
{
UserList = DataBaseOperations.ReadDataBase();
}
);
}
}
public MyClass()
{
MyCommand = new DelegateCommand(AnyAction);
}
public ICommand MyCommand {get;}
void AnyAction()
{
//code
}