예제 #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;
        }
예제 #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);
            }
        }