Example #1
0
            /// <inheritdoc />
            public override string ConfigureComponent(string currentConfiguration, CompositionContainer container)
            {
                var dlg = new SyntaxComponentConfigDlg(currentConfiguration, container);

                if (dlg.ShowModalDialog() ?? false)
                {
                    currentConfiguration = dlg.Configuration;
                }

                return(currentConfiguration);
            }
Example #2
0
            /// <inheritdoc />
            public override string ConfigureComponent(string currentConfiguration, CompositionContainer container)
            {
                using (var dlg = new SyntaxComponentConfigDlg(currentConfiguration, container))
                {
                    if (dlg.ShowDialog() == DialogResult.OK)
                    {
                        currentConfiguration = dlg.Configuration;
                    }
                }

                return(currentConfiguration);
            }