Exemplo n.º 1
0
 protected internal virtual void Fire(DateTime now)
 {
     foreach (AbstractAction action1 in this.Actions)
     {
         ExecuteActionDelegate delegate1  = action1.Execute;
         Hashtable             hashtable1 = (Hashtable)this.ActionPropertiesMap[action1];
         delegate1.BeginInvoke(new ActionContext(action1, this, hashtable1), new AsyncCallback(this.ActionCallback), new object[] { action1, delegate1 });
         this.LogEvent("Fired action \"" + action1.Name + "\". Trigger \"" + this.InternalName + "\".");
         ActionRegistry.Instance.Add(action1.Name);
     }
 }
Exemplo n.º 2
0
 public static void ExecuteAction(ExecuteActionDelegate action)
 {
     try
     {
         if (action == null)
         {
             return;
         }
         action.Invoke();
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.ToString(), "Application Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 3
0
 public static void ExecuteAction(ExecuteActionDelegate action)
 {
     try
     {
         if (action == null)
         {
             return;
         }
         action.Invoke();
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.ToString(), "Application Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 4
0
 public static void ExecuteAction(ExecuteActionDelegate action)
 {
     try
     {
         if (action == null)
         {
             return;
         }
         action.Invoke();
     }
     catch (Exception exception)
     {
         log.Error(exception);
         MessageBox.Show("�����쳣��ֹ�����뿪����Ա��ϵ!", "����", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Application.Exit();
     }
 }
Exemplo n.º 5
0
 public static void ExecuteAction(ExecuteActionDelegate action)
 {
     try
     {
         if (action == null)
         {
             return;
         }
         action.Invoke();
     }
     catch (OptimisticConcurrencyException oce)
     {
         log.Error(oce);
         MessageBox.Show("数据已被其它客户端更改,请重新进入!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Application.Exit();
     }
     catch (Exception exception)
     {
         log.Error(exception);
         MessageBox.Show("程序异常中止,请与开发人员联系!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Application.Exit();
     }
 }
Exemplo n.º 6
0
 public static void ExecuteAction(ExecuteActionDelegate action)
 {
     try
     {
         if (action == null)
         {
             return;
         }
         action.Invoke();
     }
     catch (OptimisticConcurrencyException oce)
     {
         log.Error(oce);
         MessageBox.Show("�����ѱ������ͻ��˸��ģ������½���!", "����", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Application.Exit();
     }
     catch (Exception exception)
     {
         log.Error(exception);
         MessageBox.Show("�����쳣��ֹ�����뿪����Ա��ϵ!", "����", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Application.Exit();
     }
 }