/// <summary> /// Creates an editor for the script type. /// </summary> /// <param name="p_lstModFiles">The list of files if the current mod.</param> /// <returns>An editor for the script type.</returns> public IScriptEditor CreateEditor(IList<VirtualFileSystemItem> p_lstModFiles) { XmlScriptTreeEditorVM vmlEditor = new XmlScriptTreeEditorVM(this, p_lstModFiles); XmlScriptTreeEditor steEditor = new XmlScriptTreeEditor(vmlEditor); return steEditor; }
/// <summary> /// The default construtor. /// </summary> /// <param name="p_vmlViewModel">The view model that provides the data and operations for this view.</param> public XmlScriptTreeEditor(XmlScriptTreeEditorVM p_vmlViewModel) { InitializeComponent(); ViewModel = p_vmlViewModel; ScriptTypeName = p_vmlViewModel.ScriptType.TypeName; }