Ejemplo n.º 1
0
 public COBieCompanyInfo(string compInfoStr)
 {
     if (!string.IsNullOrEmpty(compInfoStr))
     {
         COBieCompanyInfo compInfo = JsonConvert.DeserializeObject <COBieCompanyInfo>(compInfoStr);
         CompanyType   = compInfo.CompanyType;
         CompanyName   = compInfo.CompanyName;
         StreetAddress = compInfo.StreetAddress;
         City          = compInfo.City;
         State_Region  = compInfo.State_Region;
         PostalCode    = compInfo.PostalCode;
         Country       = compInfo.Country;
         CompanyPhone  = compInfo.CompanyPhone;
         CompanyEmail  = compInfo.CompanyEmail;
     }
 }
Ejemplo n.º 2
0
 public COBieCompanyInfo(string compInfoStr)
 {
     if (!string.IsNullOrEmpty(compInfoStr))
     {
         JavaScriptSerializer js       = new JavaScriptSerializer();
         COBieCompanyInfo     compInfo = js.Deserialize <COBieCompanyInfo>(compInfoStr);
         CompanyType   = compInfo.CompanyType;
         CompanyName   = compInfo.CompanyName;
         StreetAddress = compInfo.StreetAddress;
         City          = compInfo.City;
         State_Region  = compInfo.State_Region;
         PostalCode    = compInfo.PostalCode;
         Country       = compInfo.Country;
         CompanyPhone  = compInfo.CompanyPhone;
         CompanyEmail  = compInfo.CompanyEmail;
     }
 }