ServiceMonitor.ProcessModel.GetData C# (CSharp) Method

GetData() public method

public GetData ( int index ) : LogData
index int
return LogData
        public LogData GetData( int index )
        {
            return OnGetData( index);
        }

Usage Example

Beispiel #1
0
        void SearchText(string text, bool caseSense)
        {
            string textToSearch = text.Trim();

            if (caseSense)
            {
                textToSearch = text.Trim().ToLower();
            }

            resultList.BeginUpdate();
            resultList.Items.Clear();

            if (textToSearch != "")
            {
                int count = _model.GetDataCount();

                for (int i = 0; i < count; i++)
                {
                    var item = _model.GetData(i);
                    if (item.Text.IndexOf(textToSearch) != -1)
                    {
                        resultList.Items.Add(item);
                    }
                }
            }

            resultList.EndUpdate();
        }