Пример #1
0
 /// <summary>
 /// 获取NoticeBuilder实例
 /// </summary>
 /// <returns></returns>
 public static NoticeBuilder Instance()
 {
     if (_defaultInstance == null)
     {
         lock (lockObject)
         {
             if (_defaultInstance == null)
             {
                 _defaultInstance = new NoticeBuilder();
                 Initialize();
             }
         }
     }
     return(_defaultInstance);
 }
Пример #2
0
 /// <summary>
 /// 获取NoticeBuilder实例
 /// </summary>
 /// <returns></returns>
 public static NoticeBuilder Instance()
 {
     if (_defaultInstance == null)
     {
         lock (lockObject)
         {
             if (_defaultInstance == null)
             {
                 //从 \Languages\zh-CN\NoticeTemplates.xml 及  \Applications\[ApplicationKey]\Languages\zh-CN\Notices\NoticeTemplates.xml 加载通知模板
                 NoticeTemplates = LoadNoticeTemplates();
                 _defaultInstance = new NoticeBuilder();
             }
         }
     }
     return _defaultInstance;
 }
Пример #3
0
 /// <summary>
 /// 获取NoticeBuilder实例
 /// </summary>
 /// <returns></returns>
 public static NoticeBuilder Instance()
 {
     if (_defaultInstance == null)
     {
         lock (lockObject)
         {
             if (_defaultInstance == null)
             {
                 //从 \Languages\zh-CN\NoticeTemplates.xml 及  \Applications\[ApplicationKey]\Languages\zh-CN\Notices\NoticeTemplates.xml 加载通知模板
                 NoticeTemplates  = LoadNoticeTemplates();
                 _defaultInstance = new NoticeBuilder();
             }
         }
     }
     return(_defaultInstance);
 }