public override object EditValue( ITypeDescriptorContext context, IServiceProvider provider, object value) { List <string> toReturn = value as List <string>; FileListWindow fileListWindow = new FileListWindow(); fileListWindow.FillFrom(toReturn); DialogResult result = fileListWindow.ShowDialog(); if (result == DialogResult.OK) { toReturn = fileListWindow.GetList(); } else { // do nothing, return the toReturn; } return(toReturn); }
public override object EditValue( ITypeDescriptorContext context, IServiceProvider provider, object value) { List<string> toReturn = value as List<string>; FileListWindow fileListWindow = new FileListWindow(); fileListWindow.FillFrom(toReturn); DialogResult result = fileListWindow.ShowDialog(); if (result == DialogResult.OK) { toReturn = fileListWindow.GetList(); } else { // do nothing, return the toReturn; } return toReturn; }