Example #1
0
 //事件触发方法
 public virtual void OnTransEvent(TransEventAgrs e)
 {
     if (TransEvent != null)
     {
         TransEvent(this, e);
     }
 }
Example #2
0
        //引发事件
        public void Speak(string str)
        {
            TransEventAgrs e = new TransEventAgrs(str);

            OnTransEvent(e);
        }
Example #3
0
        public void Speak(string word)
        {
            TransEventAgrs e = new TransEventAgrs(word);

            OnTrands(e);
        }