Exemple #1
0
        public static SymItem GenerateSymItem(short Index, int IntVar, string Name)
        {
            SymItem item = new SymItem();

            item.CaptionLength = (short)Name.Length;
            item.VarLink       = Index;
            item.StrangeInt    = IntVar;
            item.CaptionBytes  = Encoding.GetEncoding(1251).GetBytes(Name);
            return(item);
        }
Exemple #2
0
        public SymItem ReadSymItem()
        {
            SymItem sym = new SymItem();

            sym.CaptionLength = SavReader.ReadInt16();
            sym.VarLink       = SavReader.ReadInt16();
            sym.StrangeInt    = SavReader.ReadInt32();
            sym.CaptionBytes  = SavReader.ReadBytes(sym.CaptionLength);
            return(sym);
        }