Click here to Skip to main content
12,444,360 members (52,023 online)
   

C#

 
AnswerRe: Another conversion problem (Prism) Pin
Pete O'Hanlon18-Nov-12 11:39
protectorPete O'Hanlon18-Nov-12 11:39 
GeneralRe: Another conversion problem (Prism) Pin
Andy_L_J18-Nov-12 11:47
memberAndy_L_J18-Nov-12 11:47 
QuestionSending bytes via internet? (info) Pin
clonze18-Nov-12 1:22
memberclonze18-Nov-12 1:22 
AnswerRe: Sending bytes via internet? (info) Pin
Eddy Vluggen18-Nov-12 1:50
memberEddy Vluggen18-Nov-12 1:50 
GeneralRe: Sending bytes via internet? (info) Pin
clonze18-Nov-12 3:54
memberclonze18-Nov-12 3:54 
GeneralRe: Sending bytes via internet? (info) Pin
Eddy Vluggen18-Nov-12 4:42
memberEddy Vluggen18-Nov-12 4:42 
QuestionConverting from VB.NET Pin
Andy_L_J17-Nov-12 21:39
memberAndy_L_J17-Nov-12 21:39 
AnswerRe: Converting from VB.NET Pin
DaveyM6917-Nov-12 22:23
mentorDaveyM6917-Nov-12 22:23 
Andy_L_J wrote:
AddressOf

... in your VB declarations is one clue here along with your error message.

Your RelayCommand constructor takes two delegates. In VB.Net you use the AddressOf operator to get a delegate for a method. In C# we use a delegate directly.

Try something like this to create delegates to your methods:
LogoutCommand = new RelayCommand(new Action<object>(LogoutExecute), new Predicate<object>(CanLogoutExecute));

Edit: Your LogoutExecute and CanLogoutExecute methods should both have one parameter of type object.
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)




modified 18-Nov-12 4:32am.

GeneralRe: Converting from VB.NET Pin
Andy_L_J17-Nov-12 22:54
memberAndy_L_J17-Nov-12 22:54 
GeneralRe: Converting from VB.NET Pin
DaveyM6918-Nov-12 7:10
mentorDaveyM6918-Nov-12 7:10 
GeneralRe: Converting from VB.NET Pin
Andy_L_J18-Nov-12 11:12
memberAndy_L_J18-Nov-12 11:12 
Questionfiltering column value in DevExpress grid view Pin
eli1502197917-Nov-12 20:23
membereli1502197917-Nov-12 20:23 
AnswerRe: filtering column value in DevExpress grid view Pin
n.podbielski17-Nov-12 21:29
membern.podbielski17-Nov-12 21:29 
Questionhelp Pin
AMIR ESLAMI17-Nov-12 9:08
memberAMIR ESLAMI17-Nov-12 9:08 
AnswerRe: help Pin
Eddy Vluggen17-Nov-12 9:25
memberEddy Vluggen17-Nov-12 9:25 
AnswerRe: help Pin
Abhinav S18-Nov-12 20:58
mvpAbhinav S18-Nov-12 20:58 
QuestionAccess to created control Pin
KKW_acd17-Nov-12 5:18
memberKKW_acd17-Nov-12 5:18 
AnswerRe: Access to created control Pin
DaveyM6917-Nov-12 7:30
mentorDaveyM6917-Nov-12 7:30 
QuestionHow do you programatically open a file in c# to append? Pin
Xarzu17-Nov-12 1:05
memberXarzu17-Nov-12 1:05 
AnswerRe: How do you programatically open a file in c# to append? Pin
DaveyM6917-Nov-12 1:35
mentorDaveyM6917-Nov-12 1:35 
AnswerRe: How do you programatically open a file in c# to append? Pin
Eddy Vluggen17-Nov-12 9:32
memberEddy Vluggen17-Nov-12 9:32 
QuestionC# noob: Making Textbox entry a percentage, and Help with loops Pin
maul5916-Nov-12 18:46
membermaul5916-Nov-12 18:46 
AnswerRe: C# noob: Making Textbox entry a percentage, and Help with loops Pin
Richard MacCutchan16-Nov-12 20:43
mvpRichard MacCutchan16-Nov-12 20:43 
AnswerRe: C# noob: Making Textbox entry a percentage, and Help with loops Pin
OriginalGriff16-Nov-12 21:40
mvpOriginalGriff16-Nov-12 21:40 
GeneralRe: C# noob: Making Textbox entry a percentage, and Help with loops Pin
maul5916-Nov-12 22:20
membermaul5916-Nov-12 22:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 23 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid