private void killAllWithConfirmation() { if (Common.Properties.Settings.Default.ConfirmKillAll == 0 // do not want to confirm || MessageBox.Show("Kill all apps???", "Dirigent", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK) { var args = new KillAllArgs() { }; _ctrl.Send(new Net.KillAllMessage(_ctrl.Name, args)); } }
public override void Execute() { var argsStruct = new KillAllArgs() { }; if (args.Count > 0) { argsStruct.MachineId = args[0]; } ctrl.KillAll(_requestorId, argsStruct); WriteResponse("ACK"); }
public KillAllMessage(string requestorId, KillAllArgs args) { this.Sender = requestorId; this.Args = args; }