public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            string s = String.Empty;;

            if (value != null) {
                s = value.ToString();
            }
            IStringBasedEditorDialog ed = new TextEditorDialog(s, expressionEditor);
            return ed.ShowDialog() == DialogResult.OK ? ed.TextValue : s;
        }
		public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
		{
			string s = String.Empty;;
			
			if (value != null) {
				s = value.ToString();
			}

			IStringBasedEditorDialog ed = new TextEditorDialog (s,"ReportSettings");
			if (ed.ShowDialog() == DialogResult.OK) {
				return ed.TextValue;
			} else {
				return s;
			}
		}
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            string s = String.Empty;;

            if (value != null)
            {
                s = value.ToString();
            }

            IStringBasedEditorDialog ed = new TextEditorDialog(s, "ReportSettings");

            if (ed.ShowDialog() == DialogResult.OK)
            {
                return(ed.TextValue);
            }
            else
            {
                return(s);
            }
        }