コード例 #1
0
ファイル: EventInvokers.cs プロジェクト: marwahaha/Beethoven
 public ActionEventInvoker this[string name]
 {
     get
     {
         if (dictionary.TryGetValue(name, out ActionEventInvoker actionEventInvoker))
         {
             return(actionEventInvoker);
         }
         actionEventInvoker = new ActionEventInvoker(name);
         dictionary.Add(name, actionEventInvoker);
         return(actionEventInvoker);
     }
 }
コード例 #2
0
 public void Bind(EventInvokers eventInvokers)
 {
     actionEventNotifier = eventInvokers[name];
 }