Esempio n. 1
0
 public void CaseCallbackHandler(IUI ui, string cmd, params object[] ps)
 {
     try
     {
         if (this.Case.pData.pIsAsynchronism)
         {
             if (ui != null)
                 sc.Post(o =>
                 {
                     this.Case.pipo.pProgressBar.Visible = false;
                     ui.CaseCallbackHandl(cmd);
                 }, null);
             else
             {
                 sc.Post(o =>
                 {
                     this.RealCaseCallbackHandl(cmd, ps);
                 }, null);
             }
         }
         else
         {
             this.RealCaseCallbackHandl(cmd, ps);
         }
     }
     catch (Exception e)
     {
         this.OnpNotify("-" + e.Message);
     }
 }
Esempio n. 2
0
 public void CaseCallbackHandler(IUI ui, string cmd, params object[] ps)
 {
     try
     {
         if (this.Case.pData.pIsAsynchronism)
         {
             if (ui != null)
             {
                 sc.Post(o =>
                 {
                     this.Case.pipo.pProgressBar.Visible = false;
                     ui.CaseCallbackHandl(cmd);
                 }, null);
             }
             else
             {
                 sc.Post(o =>
                 {
                     this.RealCaseCallbackHandl(cmd, ps);
                 }, null);
             }
         }
         else
         {
             this.RealCaseCallbackHandl(cmd, ps);
         }
     }
     catch (Exception e)
     {
         this.OnpNotify("-" + e.Message);
     }
 }