public ChannelInstance AddNewChannelInstance()
{
CollectionElement channelInstancesElement = m_physicalRecord.Body.Collection.GetCollectionByTag(ChannelInstancesTag);
CollectionElement channelInstanceElement = new CollectionElement() { TagOfElement = OneChannelInstanceTag };
ChannelInstance channelInstance = new ChannelInstance(channelInstanceElement, this);
if ((object)channelInstancesElement == null)
{
channelInstancesElement = new CollectionElement()
{
TagOfElement = OneChannelInstanceTag
};
m_physicalRecord.Body.Collection.AddElement(channelInstancesElement);
}
channelInstancesElement.AddElement(channelInstanceElement);
return channelInstance;
}