Ejemplo n.º 1
0
 public VariableEntry(Types.TIVar var, string name, bool archived = false)
 {
     variable = var;
     byte[] tname = Encoding.ASCII.GetBytes(name);
     for (int i = 0; i < 8; i++)
     {
         if (i < name.Length)
         {
             this.name[i] = tname[i];
         }
         else
         {
             this.name[i] = 0;
         }
     }
     isArchived = archived;
 }
Ejemplo n.º 2
0
 public VariableEntry(Types.TIVar var, bool archived = false)
 {
     variable   = var;
     name       = new byte[] { 0, 0, 0, 0, 0, 0, 0 };
     isArchived = archived;
 }