Exemplo n.º 1
0
    public FriendlyLink()
    {
        //初始化ASP.NET内置对象
        Response    = System.Web.HttpContext.Current.Response;
        Request     = System.Web.HttpContext.Current.Request;
        Server      = System.Web.HttpContext.Current.Server;
        Session     = System.Web.HttpContext.Current.Session;
        Application = System.Web.HttpContext.Current.Application;

        tools  = ToolsFactory.CreateTools();
        MyBLL  = FriendlyLinkFactory.CreateFriendlyLink();
        MyCBLL = FriendlyLinkFactory.CreateFriendlyLinkCate();
    }
Exemplo n.º 2
0
    //private U_ILinksApplication MyApplication;

    public CMS()
    {
        //初始化ASP.NET内置对象
        Response     = System.Web.HttpContext.Current.Response;
        Request      = System.Web.HttpContext.Current.Request;
        Server       = System.Web.HttpContext.Current.Server;
        Session      = System.Web.HttpContext.Current.Session;
        Application  = System.Web.HttpContext.Current.Application;
        Webnotice    = NoticeFactory.CreateNotice();
        tools        = ToolsFactory.CreateTools();
        MyHelpCate   = HelpFactory.CreateHelpCate();
        MyHelp       = HelpFactory.CreateHelp();
        MyAbout      = AboutFactory.CreateAbout();
        mylink       = FriendlyLinkFactory.CreateFriendlyLink();
        pub          = new Public_Class();
        mylinkcate   = FriendlyLinkFactory.CreateFriendlyLinkCate();
        MyNoticeCate = NoticeFactory.CreateNoticeCate();
        // MyApplication = U_LinksApplicationFactory.CreateU_LinksApplication();
    }