Example #1
0
 /// <summary>
 /// constructor
 /// </summary>
 public Manga(EnmSite site)
 {
     try
     {
         this.Site = site;
     }
     catch (Exception)
     {
         throw;
     }
 }
        /// <summary>
        /// get chapter loader component base on site
        /// </summary>
        /// <param name="site"></param>
        /// <returns></returns>
        public static Controller.Interface.IChapterLoader getLoader(EnmSite site)
        {
            try
            {
                switch (site)
                {
                case EnmSite.VnSharing:
                    return(new VnSharingChapterLoader());

                    break;

                default:
                    throw new Exception();
                    break;
                }
            }
            catch (Exception)
            {
                throw;
            }
        }