Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <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);
     }
 }