Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     NewsInfoImpl pl = new NewsInfoImpl();
     rp.DataSource = pl.GetNewsBy_hit(5, " AND catid =" + catid);
     rp.DataBind();
     CategoryImpl catpl = new CategoryImpl();
     catname = catpl.GetCategoryById(catid).catname;
 }
Пример #2
0
        internal static CategoryImpl GetInstance([CallerMemberName] string callerName = "")
        {
            JToken json = new JObject();

            JsonSource(ref json);
            CategoryImpl instance = CategoryImpl.FromToken(json);

            InstanceFactory(ref instance, callerName);
            return(instance);
        }
Пример #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        NewsInfoImpl pl = new NewsInfoImpl();

        rp.DataSource = pl.GetNewsBy_hit(5, " AND catid =" + catid);
        rp.DataBind();
        CategoryImpl catpl = new CategoryImpl();

        catname = catpl.GetCategoryById(catid).catname;
    }
Пример #4
0
 static partial void InstanceFactory(ref CategoryImpl instance, [CallerMemberName] string callerName = "");