/// <summary> /// Handles the plus minus click event for either local or remote TPE. /// </summary> /// <param name="context">Indicates to handler method whether it is from the local or remote TPE.</param> /// <param name="delta">Indicates when the amount of change either positive or negative.</param> private void OnPlusMinusClick(object context, int delta) { // if it is a remote engine if (context != null) { // if we are connected to a remote engine, set its max tasks if (_remoteTpe != null) { _remoteTpe.SetMaxTasks(_engineId, delta); } } // otherwise it was local TPE; update the max tasks. else { MaxTasksChanged(delta); } }