Esempio 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);
        }
Esempio 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;
        }