Click here to Skip to main content
15,918,706 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: document code Pin
dan!sh 5-May-10 7:24
professional dan!sh 5-May-10 7:24 
AnswerRe: document code Pin
Richard MacCutchan5-May-10 7:26
mveRichard MacCutchan5-May-10 7:26 
AnswerRe: document code Pin
Pete O'Hanlon5-May-10 9:26
mvePete O'Hanlon5-May-10 9:26 
AnswerRe: document code Pin
Dave Kreskowiak5-May-10 9:32
mveDave Kreskowiak5-May-10 9:32 
AnswerRe: document code Pin
Peace ON5-May-10 21:03
Peace ON5-May-10 21:03 
I do not find type "LineDefinition" anywhere.

I derived following code from your distorted code.

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;
        }
    }


So unable to find what is exact problem with
this code...

Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....

QuestionDate formate changing in Italian settings Pin
attalurisubbu5-May-10 5:28
attalurisubbu5-May-10 5:28 
AnswerRe: Date formate changing in Italian settings Pin
Not Active5-May-10 5:55
mentorNot Active5-May-10 5:55 

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.