Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
AnswerRe: cannot convert from 'System.Xml.XmlDocument' to 'System.Xml.XmlElement' Pin
Arun Jacob6-May-10 2:43
Arun Jacob6-May-10 2:43 
GeneralRe: cannot convert from 'System.Xml.XmlDocument' to 'System.Xml.XmlElement' Pin
king40210-May-10 17:16
king40210-May-10 17:16 
QuestionConnect To MySQL when working behind proxy Pin
Waheed Ur Rehman5-May-10 20:44
Waheed Ur Rehman5-May-10 20:44 
QuestionDataset Accept change is not working Pin
Shahzad.Aslam5-May-10 20:04
Shahzad.Aslam5-May-10 20:04 
AnswerRe: Dataset Accept change is not working Pin
Peace ON5-May-10 21:13
Peace ON5-May-10 21:13 
Questioni m in need of application code Pin
manila dahal5-May-10 18:06
manila dahal5-May-10 18:06 
AnswerRe: i m in need of application code Pin
riced5-May-10 21:11
riced5-May-10 21:11 
AnswerRe: i m in need of application code Pin
Eddy Vluggen6-May-10 1:03
professionalEddy Vluggen6-May-10 1:03 
QuestionUpdating controls on another form Pin
gmhanna5-May-10 17:57
gmhanna5-May-10 17:57 
AnswerRe: Updating controls on another form Pin
Peace ON5-May-10 21:23
Peace ON5-May-10 21:23 
GeneralRe: Updating controls on another form Pin
DaveyM695-May-10 23:40
professionalDaveyM695-May-10 23:40 
AnswerRe: Updating controls on another form Pin
DaveyM695-May-10 23:29
professionalDaveyM695-May-10 23:29 
QuestionRead certificate from USB Pin
Maurinho05-May-10 12:34
Maurinho05-May-10 12:34 
AnswerRe: Read certificate from USB Pin
AspDotNetDev5-May-10 15:15
protectorAspDotNetDev5-May-10 15:15 
QuestionAdding text box input to a dataset table Pin
mprice2145-May-10 11:34
mprice2145-May-10 11:34 
AnswerRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 11:57
professionalDr.Walt Fair, PE5-May-10 11:57 
GeneralRe: Adding text box input to a dataset table Pin
mprice2145-May-10 12:13
mprice2145-May-10 12:13 
GeneralRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 15:10
professionalDr.Walt Fair, PE5-May-10 15:10 
GeneralRe: Adding text box input to a dataset table [modified] Pin
mprice2145-May-10 15:45
mprice2145-May-10 15:45 
GeneralRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 16:47
professionalDr.Walt Fair, PE5-May-10 16:47 
QuestionMessage Removed Pin
5-May-10 9:16
professionalN_tro_P5-May-10 9:16 
QuestionEnum logic problem [modified] Pin
venomation5-May-10 8:02
venomation5-May-10 8:02 
AnswerRe: Enum logic problem Pin
Ian Shlasko5-May-10 8:19
Ian Shlasko5-May-10 8:19 
AnswerRe: Enum logic problem Pin
venomation5-May-10 8:24
venomation5-May-10 8:24 
Questiondocument code Pin
toto_20105-May-10 7:13
toto_20105-May-10 7:13 
can you correct this document the code pls ,thanks
namespace eControlCevertest.lib.Primitives
{/// <summary>
/// la class Gline est un class mere
/// </summary>

public sealed class GLine
{

#region Variables

private bool m_IsDataCorrect;

private LineDefinition m_ContentFormat;

private short
m_CRCComputed = -1,
m_CRCGiven = -1;

private string
m_Code,
m_Value;

#endregion

#region public Accessors

/// <summary>
/// Contient le Code de la donnée etdonne la v aleur, conformement au CDC GiEGLAN
/// </summary>
public string Code
{
get { return m_Code; }
set { m_Code = value; }
}

public LineDefinition ContentFormat
{
get { return m_ContentFormat; }
set { m_ContentFormat = value; }
}
/// <summary>
/// Contient la valeur de la donnée et calcule le ,
/// </summary>
public string Value
{
get { return m_Value; }
set
{
m_Value = value;
ComputeState();
}
}

public short CRCComputed
{
get
{
return m_CRCComputed;
}
}

public short CRCGiven
{
get { return m_CRCGiven; }
set
{
m_CRCGiven = value;
ComputeState();
}
}

public bool IsDataCorrect
{
get
{
return m_CRCGiven != -1 && m_IsDataCorrect;
}
}

/// <summary>
///

/// </summary>
public bool IsDefinitionAvailable
{
get
{
return m_ContentFormat != null;
}
}

#endregion

#region public non default Constructs
/// <summary>
// Constructeurs
/// </summary>
public GLine(string code, string value, short givencrc)
{
m_Code = code;
m_Value = value;
m_CRCGiven = givencrc;
ComputeState();
}
/// <summary>
// Constructeurs .
/// </summary>
public GLine(string code, string value)
{
m_Code = code;
m_Value = value;
m_CRCComputed = Common.CalcCRC(value);
}

/// <summary>
// Constructeurs .
/// </summary>
public GLine(string code, LineDefinition definition)
{
m_Code = code;
m_ContentFormat = definition;
}

#endregion

/// <summary>
/// fonction pour Calculer les valeurs.
/// </summary>

private void ComputeState()
{
m_CRCComputed = Common.CalcCRC(m_Value);
m_IsDataCorrect = m_CRCGiven == m_CRCComputed;
}
}
}

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.