/// <summary> /// Initialise the form helper delegates for use /// </summary> private void SetupFormHelperDelegates() { m_ScrollControlIntoViewDelegater = new ScrollControlIntoViewDelegate(ScrollControlIntoViewInternal); m_PeakMessagDelegater = new PeakMessageDelegate(PeakMessageInternal); m_SetFocusDelegater = new SetFocusDelegate(SetFocusInternal); m_SetFocusAsyncDelegater = new SetFocusDelegate(SetFocusAsyncInternal); }
/// <summary> /// Passes on the SetFocus to Desktop /// </summary> /// <param name="hostedAppId"></param> public void SetFocus(int hostedAppId) { if (this.InvokeRequired) { SetFocusDelegate setFocus = new SetFocusDelegate(this.SetFocus); this.Invoke(setFocus, hostedAppId); } else { WorkflowArgs e = new WorkflowArgs(); e.ApplicationId = hostedAppId; FocusHostedApp(this, e); } }