Пример #1
0
 public static CompanyInformation GetInstance(IObjectSpace objectSpace)
 {
     CompanyInformation result = objectSpace.FindObject<CompanyInformation>(null);
     if (result == null)
     {
         result = new CompanyInformation(((XPObjectSpace)objectSpace).Session);
         result.CompanyName = "My Company";
         result.CompanySlogan = "My Company Slogan";
         result.Save();
     }
     return result;
 }