예제 #1
0
        public static DialogResult ShowDialog(ServiceObject owner, PropertyDefinitionBase propDef, bool isReadOnly)
        {
            PropertyEditorDialog editor = new PropertyEditorDialog();

            editor.CurrentProperty      = propDef;
            editor.CurrentServiceObejct = owner;
            editor.IsReadOnly           = isReadOnly;
            return(editor.ShowDialog());
        }
예제 #2
0
        public static DialogResult ShowDialog(
            string propertyName,
            string typeName,
            string knownNames,
            string value,
            string smartView)
        {
            PropertyEditorDialog editor = new PropertyEditorDialog();

            editor.IsReadOnly = true;

            editor.txtName.Text       = propertyName;
            editor.txtType.Text       = typeName;
            editor.txtKnownNames.Text = knownNames;
            editor.AddPropertyValueControls(value, typeName);
            editor.txtSmartView.Text = smartView;

            return(editor.ShowDialog());
        }