Hidistro.UI.ControlPanel.Utility/LogsUserNameDropDownList.cs
(完整代码) 1KBnamespace Hidistro.UI.ControlPanel.Utility
{
using Hidistro.ControlPanel.Store;
using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;
public class LogsUserNameDropDownList : DropDownList
{
private bool allowNull = true;
private string nullToDisplay = "";
public override void DataBind()
{
this.Items.Clear();
IList<string> operationUseNames = new List<string>();
operationUseNames = EventLogs.GetOperationUseNames();
if (this.AllowNull)
{
base.Items.Add(new ListItem(this.NullToDisplay, string.Empty));
}
foreach (string str in operationUseNames)
{
base.Items.Add(new ListItem(str, str));
}
}
public bool AllowNull
{
get
{
return this.allowNull;
}
set
{
this.allowNull = value;
}
}
public string NullToDisplay
{
get
{
return this.nullToDisplay;
}
set
{
this.nullToDisplay = value;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
