Click here to Skip to main content
15,890,557 members
Home / Discussions / C#
   

C#

 
AnswerRe: Implicit/Explicit variable initialization & performance Pin
Christian Graus20-Jun-07 15:47
protectorChristian Graus20-Jun-07 15:47 
GeneralRe: Implicit/Explicit variable initialization & performance Pin
AesopTurtle20-Jun-07 15:51
AesopTurtle20-Jun-07 15:51 
GeneralRe: Implicit/Explicit variable initialization & performance Pin
Christian Graus20-Jun-07 16:26
protectorChristian Graus20-Jun-07 16:26 
GeneralRe: Implicit/Explicit variable initialization & performance Pin
AesopTurtle20-Jun-07 16:29
AesopTurtle20-Jun-07 16:29 
GeneralRe: Implicit/Explicit variable initialization & performance Pin
Luc Pattyn21-Jun-07 0:22
sitebuilderLuc Pattyn21-Jun-07 0:22 
QuestionMultiplying 2 XML nodes and append it in another XML nodes Pin
saymajum20-Jun-07 13:51
saymajum20-Jun-07 13:51 
AnswerRe: Multiplying 2 XML nodes and append it in another XML nodes Pin
Christian Graus20-Jun-07 13:55
protectorChristian Graus20-Jun-07 13:55 
GeneralRe: Multiplying 2 XML nodes and append it in another XML nodes Pin
saymajum20-Jun-07 14:09
saymajum20-Jun-07 14:09 
This is the code:
This code is actually calculating one specific node with a user defined rate value.But this code I made for one sample windows application.
But now I need only one class file where no user defined rate is there.
rate is also available in the XML file.
And these code is for one specific node.I need to do the calculations for each and every nodes where Attribute is mention as coverage.

public void CalculateCommissionAmount(string policyXML, string rate)
{
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(policyXML);
XmlElement root = xmldoc.DocumentElement;

if (Convert.ToDouble(rate) < -5)
{
MessageBox.Show("Invalid Rate - Rate cannot be less than -5%.");
}
else if (Convert.ToDouble(rate) > 100)
{
MessageBox.Show("Invalid Rate - Rate cannot be more than 100%.");
}
else
{
try
{
XmlNodeList xmlnode = xmldoc.GetElementsByTagName("PersonalAutoVehicle");
for(int i=0; i
GeneralRe: Multiplying 2 XML nodes and append it in another XML nodes Pin
Christian Graus20-Jun-07 14:19
protectorChristian Graus20-Jun-07 14:19 
GeneralRe: Multiplying 2 XML nodes and append it in another XML nodes Pin
saymajum20-Jun-07 14:33
saymajum20-Jun-07 14:33 
Questionlooping in Xml nodes in C# Pin
saymajum20-Jun-07 13:39
saymajum20-Jun-07 13:39 
AnswerRe: looping in Xml nodes in C# Pin
Christian Graus20-Jun-07 13:47
protectorChristian Graus20-Jun-07 13:47 
GeneralRe: looping in Xml nodes in C# Pin
saymajum20-Jun-07 13:54
saymajum20-Jun-07 13:54 
GeneralRe: looping in Xml nodes in C# Pin
Christian Graus20-Jun-07 13:56
protectorChristian Graus20-Jun-07 13:56 
GeneralRe: looping in Xml nodes in C# Pin
saymajum20-Jun-07 14:01
saymajum20-Jun-07 14:01 
GeneralRe: looping in Xml nodes in C# Pin
Christian Graus20-Jun-07 14:05
protectorChristian Graus20-Jun-07 14:05 
Questionserial to button Pin
dirtylarry20-Jun-07 13:35
dirtylarry20-Jun-07 13:35 
AnswerRe: serial to button Pin
Colin Angus Mackay20-Jun-07 14:17
Colin Angus Mackay20-Jun-07 14:17 
AnswerRe: serial to button Pin
Luc Pattyn20-Jun-07 14:31
sitebuilderLuc Pattyn20-Jun-07 14:31 
GeneralRe: serial to button Pin
dirtylarry20-Jun-07 15:09
dirtylarry20-Jun-07 15:09 
GeneralRe: serial to button Pin
Christian Graus20-Jun-07 16:41
protectorChristian Graus20-Jun-07 16:41 
GeneralRe: serial to button Pin
Luc Pattyn21-Jun-07 0:28
sitebuilderLuc Pattyn21-Jun-07 0:28 
QuestionArray of Multiple Forms Pin
MAW3020-Jun-07 13:30
MAW3020-Jun-07 13:30 
AnswerRe: Array of Multiple Forms Pin
Christian Graus20-Jun-07 13:37
protectorChristian Graus20-Jun-07 13:37 
Questioncontrolling serial port over network in c#? Pin
dirtylarry20-Jun-07 13:23
dirtylarry20-Jun-07 13:23 

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.