本文整理汇总了C#中IIdentity.GetBugsPerPage方法的典型用法代码示例。如果您正苦于以下问题:C# IIdentity.GetBugsPerPage方法的具体用法?C# IIdentity.GetBugsPerPage怎么用?C# IIdentity.GetBugsPerPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IIdentity
的用法示例。
在下文中一共展示了IIdentity.GetBugsPerPage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: display_bugs
///////////////////////////////////////////////////////////////////////
public static void display_bugs(
bool show_checkbox,
DataView dv,
HttpResponse Response,
IIdentity identity,
string new_page_val,
bool IsPostBack,
string filter_val
)
{
int this_page = 0;
int bugsPerPage = identity.GetBugsPerPage();
string paging_string = get_buglist_paging_string(
dv,
bugsPerPage,
IsPostBack,
new_page_val,
ref this_page);
string bug_count_string = get_buglist_bug_count_string(dv);
Response.Write(paging_string);
Response.Write("\n<table class=\"bugt\" ><tr>\n");
///////////////////////////////////////////////////////////////////
// headings
///////////////////////////////////////////////////////////////////
int db_column_count = 0;
int description_column = -1;
int search_desc_column = -1;
int search_source_column = -1;
int search_text_column = -1;
foreach (DataColumn dc in dv.Table.Columns)
{
if (db_column_count == 0)
{
// skip color/style
if (show_checkbox)
{
Response.Write("<td class=bugh><font size=0>sel</font>");
}
}
else if (dc.ColumnName == "$SCORE")
{
// don't display the score, but the "union" and "order by" in the
// query forces us to include it as one of the columns
}
else
{
Response.Write("<td class=bugh>\n");
// sorting
string s = "<a href='javascript: on_sort($col)'>";
s = s.Replace("$col", Convert.ToString(db_column_count - 1));
Response.Write(s);
if (dc.ColumnName == "$FLAG")
{
Response.Write("flag");
}
else if (dc.ColumnName == "$SEEN")
{
Response.Write("new");
}
else if (dc.ColumnName == "$VOTE")
{
Response.Write("votes");
}
else if (dc.ColumnName.ToLower().IndexOf("desc") == 0)
{
// remember this column so that we can make it a link
description_column = db_column_count; // zero based here
Response.Write(dc.ColumnName);
}
else if (dc.ColumnName == "search_desc")
{
search_desc_column = db_column_count;
Response.Write("desc");
}
else if (dc.ColumnName == "search_text")
{
search_text_column = db_column_count;
Response.Write("context");
}
else if (dc.ColumnName == "search_source")
{
search_source_column = db_column_count;
Response.Write("text source");
}
else
{
Response.Write(dc.ColumnName);
//.........这里部分代码省略.........