Esempio n. 1
0
        private void SetErrorCodeExistList(string tsID)
        {
            this.listViewSelected.Clear();

            object[] tsErrorCodes = _TSFacade.GetTSErrorCode(tsID);

            if (tsErrorCodes != null)
            {
                foreach (TSErrorCode tsErrorCode in tsErrorCodes)
                {
                    if (_DefaultErrorCode != null)
                    {
                        if (string.Compare(_DefaultErrorCode.ParameterAlias, tsErrorCode.ErrorCode, true) == 0)
                        {
                            continue;
                        }
                    }
                    ListViewItem item = new ListViewItem(string.Format("{0}:{1}", tsErrorCode.ErrorCodeGroup, tsErrorCode.ErrorCode));
                    item.Tag = tsErrorCode;

                    this.listViewSelected.Items.Add(item);
                }
            }
        }