コード例 #1
0
        /// <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;
        }
コード例 #2
0
 void ConditionalCollection_Changed(EditorNPCChatConditionalCollection source, EventArgs e)
 {
     RebuildItemList();
 }
コード例 #3
0
 void ConditionalCollection_Changed(EditorNPCChatConditionalCollection source, EventArgs e)
 {
     RebuildItemList();
 }
コード例 #4
0
        /// <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;
        }