コード例 #1
0
        /**
         * Throws the model as an event to the listeners
         * @param model to be thrown
         */
        private void ThrowEvent(Model model)
        {
            IEnumerator i = listeners.GetEnumerator();

            while (i.MoveNext())
            {
                ModelFactoryListener mfl = (ModelFactoryListener)i.Current;
                mfl.Process(model);
            }
        }
コード例 #2
0
ファイル: ModelFactory.cs プロジェクト: ChiangHanLung/PIC_VDS
 /**
  * register a ModelFactoryListener so that it can receive 
  * Models as they are created.
  */
 public void RegisterListener(ModelFactoryListener listener)
 {
     listeners.Add(listener);
 }
コード例 #3
0
 /**
  * register a ModelFactoryListener so that it can receive
  * Models as they are created.
  */
 public void RegisterListener(ModelFactoryListener listener)
 {
     listeners.Add(listener);
 }