protected void Edit(string title, string label)
        {
            IDataElement dataElement = ((IDataElement) Object);
            string existingString = ((IDataItem)dataElement.Data).Value.ToString();
            SelectStringForm form = new SelectStringForm(existingString);
            form.Text = title;
            form.EnteredTextLabel = label;

            if (DialogResult.OK == form.ShowDialog())
            {
                //data
                dataElement.Data = DataItem.CreateDataItem(new NonTranslateableLanguageItem(""), DataType.String, form.SelectedString);

                //display name
                Text = form.SelectedString;
            }
        }
        public void Edit()
        {
            IDataElement dataElement = Object as IDataElement;
            IDataItem dataItem = dataElement.Data as IDataItem;
            string currentString = null;
            if (dataItem != null)
            {
                currentString = dataItem.Value.ToString();
            }
            SelectStringForm form = new SelectStringForm(currentString);
            form.Text = Properties.Resources.FILE_FILE;
            form.EnteredTextLabel = Properties.Resources.FILE_ADD;
            if (DialogResult.OK == form.ShowDialog())
            {
                //data
                dataElement.Data = DataItem.CreateDataItem(new NonTranslateableLanguageItem(""), DataType.String, form.SelectedString);

                //display name
                dataElement.DisplayName.Value = GetDisplayNameFromDataItems();
                Text = dataElement.DisplayName.Value;
            }
        }