Click here to Skip to main content
15,921,530 members

Comments by Abhishek Sivasubramanian (Top 5 by date)

Abhishek Sivasubramanian 23-May-14 17:20pm View    
+1 Ryan. Best option is to rewrite it.
Abhishek Sivasubramanian 23-May-14 15:32pm View    
Develop a class library that will do OAuth authentication. This topic will help you to understand Open Authorization (which is the latest trend of safe and secure authentication).

Read more at :
Abhishek Sivasubramanian 23-May-14 15:22pm View    
Are you getting some error on that line you highlighted OR your problem is that you cannot see the forecolor being applied ?

If later is the case, you need to place the dynamically generated label to the form's control collection or a panel. Then only you can see that.
Abhishek Sivasubramanian 23-May-14 14:47pm View    
If you are trying to use Adam.NET class library, please refer the API documentation and see if you are coding in the way documentation says you to. I am not sure of which version of ADAM micro controller you are using.
Abhishek Sivasubramanian 2-May-14 16:26pm View    
What I would suggest is to use the DataContractSerializer to generate serialized form of the DataContract class. Now prepare an XmlDictionaryWriter object. You could use the WriteAttributeString() method to add attributes to these XML elements. As Sergey said, you need not create XElemenet and parse stuff when DataContract serializer does all this for you.

Applicant p = new Applicant();
DataContractSerializer dcs = new DataContractSerializer(typeof(Applicant));
XmlDictionaryWriter xdw = XmlDictionaryWriter.CreateTextWriter(someStream,Encoding.UTF8 );
dcs.WriteObject(xdw, p);

dcs.WriteStartObject(xdw, p);
xdw.WriteAttributeString("IsEnabled", "True");
dcs.WriteObjectContent(xdw, p);

Does this help ?