protected override void Run () { SelectExecutableDialog dlg = new SelectExecutableDialog (); if (dlg.Run () == (int)ResponseType.Ok) { IProfiler profiler = dlg.Profiler; string executable = dlg.Executable; string arguments = dlg.Arguments; string workingDir = Path.GetDirectoryName (executable); ProfilingOperations.ProfileApplication (profiler, executable, workingDir, arguments); } dlg.Destroy (); }
protected override void Run() { SelectExecutableDialog dlg = new SelectExecutableDialog(); if (dlg.Run() == (int)ResponseType.Ok) { IProfiler profiler = dlg.Profiler; string executable = dlg.Executable; string arguments = dlg.Arguments; string workingDir = Path.GetDirectoryName(executable); ProfilingOperations.ProfileApplication(profiler, executable, workingDir, arguments); } dlg.Destroy(); }