public void TerminateCurrent() { if (progcurrent != null) { progcurrent.Terminated(); progcurrent = null; } }