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