protected virtual void OnAttachToProcessActionActivated (object sender, System.EventArgs e) { ProcessSelector p = new ProcessSelector (); int c = p.Run (); if (c == (int) ResponseType.Ok){ VirtualMachine vm = new VirtualMachine (p.PID); vm.Attach (typeof (MainWindow).Assembly.Location, "--agent"); } p.Destroy (); }
protected virtual void OnAttachToProcessActionActivated(object sender, System.EventArgs e) { ProcessSelector p = new ProcessSelector(); int c = p.Run(); if (c == (int)ResponseType.Ok) { VirtualMachine vm = new VirtualMachine(p.PID); vm.Attach(typeof(MainWindow).Assembly.Location, "--agent"); } p.Destroy(); }