/// <summary>
        /// Sets the ConditionalCollection.
        /// </summary>
        /// <param name="value">The NPCChatConditionalCollectionBase to set the ConditionalCollection as.
        /// If null, an empty NPCChatConditionalCollectionBase will be used.</param>
        public void SetConditionalCollection(NPCChatConditionalCollectionBase value)
        {
            var asEditorCollection = value as EditorNPCChatConditionalCollection;

            if (asEditorCollection != null)
            {
                ConditionalCollection = asEditorCollection;
                return;
            }

            var newCollection = new EditorNPCChatConditionalCollection(value);

            ConditionalCollection = newCollection;
        }
 void ConditionalCollection_Changed(EditorNPCChatConditionalCollection source, EventArgs e)
 {
     RebuildItemList();
 }
 void ConditionalCollection_Changed(EditorNPCChatConditionalCollection source, EventArgs e)
 {
     RebuildItemList();
 }
        /// <summary>
        /// Sets the ConditionalCollection.
        /// </summary>
        /// <param name="value">The NPCChatConditionalCollectionBase to set the ConditionalCollection as.
        /// If null, an empty NPCChatConditionalCollectionBase will be used.</param>
        public void SetConditionalCollection(NPCChatConditionalCollectionBase value)
        {
            var asEditorCollection = value as EditorNPCChatConditionalCollection;
            if (asEditorCollection != null)
            {
                ConditionalCollection = asEditorCollection;
                return;
            }

            var newCollection = new EditorNPCChatConditionalCollection(value);
            ConditionalCollection = newCollection;
        }