Exemplo n.º 1
0
 public clsEntity(string name, string address, string town, string state, int zip, string phone, string contact, string email, string path, clsEntity.Type type)
 {
     this.iEntityID      = _NewEntityID();
     this.strName        = name;
     this.strAddress     = address;
     this.strTown        = town;
     this.strState       = state;
     this.iZipCode       = zip;
     this.strPhone       = phone;
     this.strContactName = contact;
     this.strEmail       = email;
     this.strPathAbbrev  = path;
     this.tType          = type;
 }
Exemplo n.º 2
0
 private bool _Load(int id, clsCSVTable tbl)
 {
     if (id < tbl.Length())
     {
         this.iEntityID  = id;
         this.strName    = tbl.Value(id, clsEntity.NameColumn);
         this.strAddress = tbl.Value(id, clsEntity.AddressColumn);
         this.strTown    = tbl.Value(id, clsEntity.TownColumn);
         this.strState   = tbl.Value(id, clsEntity.StateColumn);
         Console.WriteLine(tbl.Value(id, clsEntity.ZipCodeColumn));
         this.iZipCode       = Int32.Parse(tbl.Value(id, clsEntity.ZipCodeColumn));
         this.strPhone       = tbl.Value(id, clsEntity.PhoneNumberColumn);
         this.strContactName = tbl.Value(id, clsEntity.ContactNameColumn);
         this.strEmail       = tbl.Value(id, clsEntity.ContactEmailColumn);
         this.strPathAbbrev  = tbl.Value(id, clsEntity.PathAbbreviationColumn);
         this.tType          = (clsEntity.Type)Int32.Parse(tbl.Value(id, clsEntity.EntityTypeColumn));
         return(true);
     }
     else
     {
         return(false);
     }
 }