Esempio n. 1
0
        void I_UpdateStatus(N_EventCenter.Par par)
        {
            Dic    dic    = par._context as Dic;
            string status = dic[EventName.status] as string;

            this.toolStripStatusLabel1.Text = status;
        }
Esempio n. 2
0
        /// <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);
                }
            }
        }
Esempio n. 3
0
 void I_ConfigChange(N_EventCenter.Par par)
 {
     ConfigChange();
 }