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); } }
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); } }
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(); } }
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(); } }
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(); } }