Split AbstractDataEditorControl to separate class file.

Cleaned up code in AbstractDataEditor and AbstractDataEditorControl.
Made AbstractDataEditorControl inherit from INamingContainer to help with control id issues.
Made the ID and DataTypeName fields of AbstractDataEditor abstract so they must be implemented.
This commit is contained in:
azzlack
2012-07-27 21:34:58 -02:00
parent 466d871ede
commit b226be4939
6 changed files with 216 additions and 151 deletions

View File

@@ -36,7 +36,7 @@ namespace umbraco.editorControls.MultipleTextstring
this.m_Control.Init += new EventHandler(this.m_Control_Init);
// assign the save event for the data-type/editor
this.DataEditorControl.OnSave += new AbstractDataEditorControl.SaveEventHandler(this.DataEditorControl_OnSave);
this.DataEditorControl.OnSave += this.DataEditorControl_OnSave;
}
/// <summary>
@@ -127,7 +127,7 @@ namespace umbraco.editorControls.MultipleTextstring
/// Saves the data for the editor control.
/// </summary>
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
private void DataEditorControl_OnSave(EventArgs e)
private void DataEditorControl_OnSave(object sender, EventArgs e)
{
this.Data.Value = this.m_Control.Values;
}