/// <summary>
        /// 
        /// </summary>
        public void Edit()
        {
            ICondition condition = Object as ICondition;

            Array enumTypes = Enum.GetValues(typeof(OperatorType));
            List<string> enumTypesText = new List<string>();
            foreach (OperatorType type in enumTypes)
            {
                enumTypesText.Add(ConditionDisplayHelper.GetOperatorString(type));
            }

            SelectEnumForm form = new SelectEnumForm(ConditionDisplayHelper.GetOperatorString(condition.Operator));
            form.Text = Properties.Resources.COMPARE_FILE;
            form.SelectedEnumLabel = Properties.Resources.COMPARE_LOOK;

            form.AllItems = enumTypesText.ToArray();
            if (DialogResult.OK == form.ShowDialog())
            {
                //data
                condition.Operator = ConditionDisplayHelper.GetOperatorType(form.SelectedItem);

                //display name
                Text = GetDisplayNameFromDataItems();
            }
        }
        /// <summary>
        /// Show edit dialog
        /// </summary>
        public void Edit()
        {
            IDataElement dataElement = Object as IDataElement;

            Array values = Enum.GetValues(typeof(DocumentRestriction));
            List<string> displayValues = new List<string>();
            foreach (DocumentRestriction value in values)
            {
                if (DocumentRestriction.Undefined != value)
                {
                    displayValues.Add(DocumentRestrictionUtils.Instance.ConvertDocumentRestriction(value));
                }
            }

            IDataItem dataItem = dataElement.Data as IDataItem;
            DocumentRestriction currentDocumentRestriction = (DocumentRestriction)Convert.ToInt32(dataItem.Value.ToString(), CultureInfo.InvariantCulture);

            DocumentRestrictionUtils documentRestrictionUtils = DocumentRestrictionUtils.Instance;
            SelectEnumForm form = new SelectEnumForm(documentRestrictionUtils.ConvertDocumentRestriction(currentDocumentRestriction));
            form.Text = Properties.Resources.DOCUMENTRESTRICTION_FILE;
            form.SelectedEnumLabel = Properties.Resources.DOCUMENTRESTRICTION_LOOK;

            form.AllItems = displayValues.ToArray();
            if (DialogResult.OK == form.ShowDialog())
            {
                //data
                currentDocumentRestriction = documentRestrictionUtils.ConvertDocumentRestriction(form.SelectedItem);
                dataElement.Data = DataItem.CreateDataItem(new NonTranslateableLanguageItem(""), DataType.String, Convert.ToString((int)currentDocumentRestriction, CultureInfo.InvariantCulture));

                //display name
                Text = GetDisplayNameFromDataItems();
            }
        }