public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, System.IServiceProvider provider, object value)
		{
			EditConnectionString dlg = new EditConnectionString();
			dlg.ConnectionString = (string)value;
			if(dlg.ShowDialog() == DialogResult.OK)
			{
				return dlg.ConnectionString;
			}
			else
				return value;
		}
예제 #2
0
        public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, System.IServiceProvider provider, object value)
        {
            EditConnectionString dlg = new EditConnectionString();

            dlg.ConnectionString = (string)value;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                return(dlg.ConnectionString);
            }
            else
            {
                return(value);
            }
        }