Example #1
0
        /// <summary>
        /// Synchronizes the communication line.
        /// </summary>
        private void SyncCommLine(Settings.CommLine commLineSettings)
        {
            if (project.ConfigBase.CommLineTable.Items.TryGetValue(commLineSettings.Number,
                                                                   out CommLine commLineEntity))
            {
                commLineSettings.Name = commLineEntity.Name;
            }

            BaseTable <KP>     kpTable     = project.ConfigBase.KPTable;
            BaseTable <KPType> kpTypeTable = project.ConfigBase.KPTypeTable;

            foreach (Settings.KP kpSettings in commLineSettings.ReqSequence)
            {
                if (kpTable.Items.TryGetValue(kpSettings.Number, out KP kpEntity))
                {
                    SettingsConverter.Copy(kpEntity, kpSettings, kpTypeTable);
                }
            }
        }