<NME> IEditableScripts.cs
<BEF> ﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TextAdventures.Quest
{
    public class EditableScriptsUpdatedEventArgs : EventArgs
    {
        internal EditableScriptsUpdatedEventArgs()
        {
        }

        internal EditableScriptsUpdatedEventArgs(IEditableScript updatedScript, EditableScriptUpdatedEventArgs args)
        {
            UpdatedScript = updatedScript;
            UpdatedScriptEventArgs = args;
        }        

        public IEditableScript UpdatedScript { get; private set; }
        public EditableScriptUpdatedEventArgs UpdatedScriptEventArgs { get; private set; }
    }

    public interface IEditableScripts
    {
        IEnumerable<IEditableScript> Scripts { get; }
        void AddNew(string keyword, string elementName);
        IEditableScript this[int index] { get; }
        event EventHandler<EditableScriptsUpdatedEventArgs> Updated;
        void Remove(int[] indexes);
        string DisplayString(int index, string newValue);
        int Count { get; }
        void Swap(int index1, int index2);
        void Cut(int[] indexes);
        void Copy(int[] indexes);
        void Paste(int index, bool useTransaction);
        IEditableScripts Clone(string parent, string attribute);
        string Owner { get; }
        string Code { get; set; }
    }
}

<MSG> Implementing the DictionaryScriptControl - now populates items and displays the DisplayString for the script values.

git-svn-id: 53f3c0fc50e56599d49cd3470d1ba0222ad3846f@6988 4a90e977-6436-4932-9605-20e10c2b6fb3

<DFF> @@ -21,7 +21,7 @@ namespace AxeSoftware.Quest
         public EditableScriptUpdatedEventArgs UpdatedScriptEventArgs { get; private set; }
     }
 
-    public interface IEditableScripts
+    public interface IEditableScripts : IDataWrapper
     {
         IEnumerable<IEditableScript> Scripts { get; }
         void AddNew(string keyword, string elementName);

{'addition_count': 1, 'commit_subject': 'Implementing the DictionaryScriptControl - now populates items and displays the DisplayString for the script values.', 'deletion_count': 1, 'file_extension': '.cs', 'lang': 'cs', 'license': 'mit', 'repo_name': 'textadventures/quest'}