Ejemplo n.º 1
0
        void AddUniversityFields(SimPe.PackedFiles.Wrapper.Cpf cpf)
        {
            if (cpf.GetItem("product") == null)
            {
                SimPe.PackedFiles.Wrapper.CpfItem i = new SimPe.PackedFiles.Wrapper.CpfItem();
                i.Name          = "product";
                i.UIntegerValue = 1;
                cpf.AddItem(i);
            }

            if (cpf.GetItem("version") == null)
            {
                SimPe.PackedFiles.Wrapper.CpfItem i = new SimPe.PackedFiles.Wrapper.CpfItem();
                i.Name          = "version";
                i.UIntegerValue = 2;
                cpf.AddItem(i);
            }
        }
Ejemplo n.º 2
0
        void SetItem(uint line, string val)
        {
            string  name = GetName(line);
            CpfItem i    = dna.GetItem(name);

            if (i == null)
            {
                i      = new CpfItem();
                i.Name = name;
                dna.AddItem(i, false);
            }

            i.StringValue = val;
        }