public void OnExecute(TaskArgs e) { EventHandler<TaskArgs> handler = Execute; if (handler != null) handler(this, e); }
public void OnStoped(TaskArgs e) { EventHandler<TaskArgs> handler = Stoped; if (handler != null) handler(this, e); }