예제 #1
0
        /// <summary>
        /// Добавя елемент
        /// </summary>
        /// <param name="itemValue">Наименование</param>
        /// <param name="itemType">Тип</param>
        /// <param name="itemStatus">Статус/Прчина</param>
        public void AddItem(string itemValue, SynchItemType itemType, SynchItemStatus itemStatus)
        {
            FSynchItem si = new FSynchItem();
            si.Type = itemType;
            si.Status = itemStatus;

            if (itemValue.StartsWith(this.Source))
            { si.Value = itemValue.Substring(this.Source.Length, itemValue.Length - this.Source.Length); }
            else
            { si.Value = itemValue; }

            this.Items.Add(si);
        }
예제 #2
0
        /// <summary>
        /// Добавя елемент
        /// </summary>
        /// <param name="itemValue">Наименование</param>
        /// <param name="itemType">Тип</param>
        /// <param name="itemStatus">Статус/Прчина</param>
        public void AddItem(string itemValue, SynchItemType itemType, SynchItemStatus itemStatus)
        {
            FSynchItem si = new FSynchItem();

            si.Type   = itemType;
            si.Status = itemStatus;

            if (itemValue.StartsWith(this.Source))
            {
                si.Value = itemValue.Substring(this.Source.Length, itemValue.Length - this.Source.Length);
            }
            else
            {
                si.Value = itemValue;
            }

            this.Items.Add(si);
        }