Ejemplo n.º 1
0
        // This method fires when the user wishes to edit a value.
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            StringListOption option = (StringListOption)value;
            StringListForm   form   = new StringListForm();

            InitializeDialog(form);

            form.Editor = this;
            form.AddFiles(option.StringList);

            if (form.ShowDialog() == DialogResult.OK)
            {
                option.StringList = form.Strings;

                return(option);
            }

            return(option);
        }
Ejemplo n.º 2
0
        /*=== virtuals ===*/

        // Override this to initialize the dialog.
        protected virtual void InitializeDialog(StringListForm form)
        {
        }
Ejemplo n.º 3
0
        /*=== overrides ===*/

        // Override this to initialize the dialog.
        protected override void InitializeDialog(StringListForm form)
        {
            form.Text = "Additional Feature Directories";
        }
Ejemplo n.º 4
0
        /*=== overrides ===*/

        // Override this to initialize the dialog.
        protected override void InitializeDialog(StringListForm form)
        {
            form.Text = "Header Compile Directories";
        }
Ejemplo n.º 5
0
        /*=== overrides ===*/

        // Override this to initialize the dialog.
        protected override void InitializeDialog(StringListForm form)
        {
            form.Text = "Additional Dependencies";
        }
Ejemplo n.º 6
0
        /*=== overrides ===*/

        // Override this to initialize the dialog.
        protected override void InitializeDialog(StringListForm form)
        {
            form.Text = "Additional Header Files";
        }