Пример #1
0
            public override CommandResult InternalExecute(ICommandTarget target, params IAdaptable[] args)
            {
                XTermBenchmarkPattern pattern;

                using (ChoosePatternDialog dialog = new ChoosePatternDialog()) {
                    DialogResult result = dialog.ShowDialog();
                    if (result != DialogResult.OK)
                    {
                        return(CommandResult.Cancelled);
                    }
                    pattern = dialog.Pattern;
                }

                XTermBenchmark benchmark = new XTermBenchmark(target, pattern);

                return(benchmark.Start());
            }
Пример #2
0
            public override CommandResult InternalExecute(ICommandTarget target, params IAdaptable[] args)
            {
                XTermBenchmarkPattern pattern;
                using (ChoosePatternDialog dialog = new ChoosePatternDialog()) {
                    DialogResult result = dialog.ShowDialog();
                    if (result != DialogResult.OK)
                        return CommandResult.Cancelled;
                    pattern = dialog.Pattern;
                }

                XTermBenchmark benchmark = new XTermBenchmark(target, pattern);
                return benchmark.Start();
            }