void I_UpdateStatus(N_EventCenter.Par par) { Dic dic = par._context as Dic; string status = dic[EventName.status] as string; this.toolStripStatusLabel1.Text = status; }
/// <summary> /// 调用方法触发事件 /// </summary> /// <param name="name"></param> /// <param name="dic"></param> public void PostNotification(string name, Dic dic) { Par par = new Par(name, dic); foreach (EventEntry i in register_Events) { if (i._name == name) { i._method(par); } } }
void I_ConfigChange(N_EventCenter.Par par) { ConfigChange(); }