void KillButtonClick(object sender, EventArgs e) { FTaskType = TTaskType.Kill; OnExecute(this); }
void RestartButtonClick(object sender, EventArgs e) { FTaskType = TTaskType.Restart; OnExecute(this); }