public override void DataBind() { this.Items.Clear(); IList <string> list = new List <string>(); list = EventLogs.GetOperationUseNames(); if (this.AllowNull) { base.Items.Add(new ListItem(this.NullToDisplay, string.Empty)); } foreach (string item in list) { base.Items.Add(new ListItem(item, item)); } }
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)); } }