Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
		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);
            }
        }