コード例 #1
0
        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));
            }
        }
コード例 #2
0
        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));
            }
        }