Beispiel #1
0
        /// <summary>
        /// 내 사진을 가져온다.
        /// </summary>
        /// <returns></returns>
        public static Bitmap GetMyPicture()
        {
            string filename    = BlogManager.GetInstance().BlogBaseModel.BlogModel.Picture;
            string absFilename = HttpContext.Current.Server.MapPath(filename);

            return(new Bitmap(absFilename));
        }
Beispiel #2
0
        public static BlogManager GetInstance()
        {
            lock (typeof(BlogManager))
            {
                if (_instance == null)
                {
                    _instance = new BlogManager();
                    _instance.Init();
                }
            }

            return(_instance);
        }
Beispiel #3
0
        public static BlogManager GetInstance()
        {
            lock (typeof(BlogManager))
            {
                if (_instance == null)
                {
                    _instance = new BlogManager();
                    _instance.Init();
                }
            }

            return _instance;
        }
Beispiel #4
0
        /// <summary>
        /// Xml 의 블로그 기본 정보를 설정한다
        /// </summary>
        public void Init()
        {
            string path = Utility.GetAbsolutePath(UmcConfiguration.Core["BlogXmlPath"]);

            _blogBaseModel = BlogManager.GetInstance().ReadBlogBaseInfo(path);
        }
Beispiel #5
0
 public void Dispose()
 {
     _instance = null;
 }
Beispiel #6
0
 public void Dispose()
 {
     _instance	= null;
 }
Beispiel #7
0
 /// <summary>
 /// 내 사진을 Html 태그로 가져온다.
 /// </summary>
 /// <returns></returns>
 public static string GetMyPictureForImgTag()
 {
     return(string.Format("<img src='{0}' alt=''내사진'",
                          BlogManager.GetInstance().BlogBaseModel.BlogModel.Picture));
 }