Click here to Skip to main content
15,907,497 members
Home / Discussions / C#
   

C#

 
GeneralRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 18:08
mvePIEBALDconsult20-Nov-12 18:08 
Question[Help] C# .txt Pin
mumbot18-Nov-12 14:03
mumbot18-Nov-12 14:03 
AnswerRe: [Help] C# .txt Pin
Praveen Raghuvanshi18-Nov-12 18:30
professionalPraveen Raghuvanshi18-Nov-12 18:30 
GeneralRe: [Help] C# .txt Pin
mumbot18-Nov-12 19:43
mumbot18-Nov-12 19:43 
GeneralRe: [Help] C# .txt Pin
V.19-Nov-12 0:37
professionalV.19-Nov-12 0:37 
GeneralRe: [Help] C# .txt Pin
PIEBALDconsult23-Nov-12 9:46
mvePIEBALDconsult23-Nov-12 9:46 
AnswerRe: [Help] C# .txt Pin
omisheikh18-Nov-12 21:04
omisheikh18-Nov-12 21:04 
GeneralRe: [Help] C# .txt Pin
mumbot18-Nov-12 21:13
mumbot18-Nov-12 21:13 
GeneralRe: [Help] C# .txt Pin
omisheikh18-Nov-12 21:19
omisheikh18-Nov-12 21:19 
GeneralRe: [Help] C# .txt Pin
mumbot18-Nov-12 21:31
mumbot18-Nov-12 21:31 
GeneralRe: [Help] C# .txt Pin
omisheikh18-Nov-12 21:40
omisheikh18-Nov-12 21:40 
GeneralRe: [Help] C# .txt Pin
mumbot18-Nov-12 22:15
mumbot18-Nov-12 22:15 
GeneralRe: [Help] C# .txt Pin
Brisingr Aerowing18-Nov-12 22:32
professionalBrisingr Aerowing18-Nov-12 22:32 
GeneralRe: [Help] C# .txt Pin
omisheikh18-Nov-12 22:34
omisheikh18-Nov-12 22:34 
GeneralRe: [Help] C# .txt Pin
mumbot19-Nov-12 0:02
mumbot19-Nov-12 0:02 
AnswerRe: [Help] C# .txt Pin
CafedeJamaica19-Nov-12 7:54
professionalCafedeJamaica19-Nov-12 7:54 
QuestionAnother conversion problem (Prism) Pin
Andy_L_J18-Nov-12 11:07
Andy_L_J18-Nov-12 11:07 
AnswerRe: Another conversion problem (Prism) Pin
Pete O'Hanlon18-Nov-12 11:39
mvePete O'Hanlon18-Nov-12 11:39 
GeneralRe: Another conversion problem (Prism) Pin
Andy_L_J18-Nov-12 11:47
Andy_L_J18-Nov-12 11:47 
QuestionSending bytes via internet? (info) Pin
clonze18-Nov-12 1:22
clonze18-Nov-12 1:22 
AnswerRe: Sending bytes via internet? (info) Pin
Eddy Vluggen18-Nov-12 1:50
professionalEddy Vluggen18-Nov-12 1:50 
GeneralRe: Sending bytes via internet? (info) Pin
clonze18-Nov-12 3:54
clonze18-Nov-12 3:54 
GeneralRe: Sending bytes via internet? (info) Pin
Eddy Vluggen18-Nov-12 4:42
professionalEddy Vluggen18-Nov-12 4:42 
QuestionConverting from VB.NET Pin
Andy_L_J17-Nov-12 21:39
Andy_L_J17-Nov-12 21:39 
AnswerRe: Converting from VB.NET Pin
DaveyM6917-Nov-12 22:23
professionalDaveyM6917-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:
C#
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.

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.