Exemplo 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);
        }
Exemplo n.º 2
0
        /*=== virtuals ===*/

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

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

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

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

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