Exemplo n.º 1
0
 public virtual void RemoveUiEventListener(string key)
 {
     if (UiEventsMap.ContainsKey(key))
     {
         UiEventsMap.Remove(key);
     }
 }
Exemplo n.º 2
0
 public void RemoveUiEventInterest(string key)
 {
     if (UiEventsMap.ContainsKey(key))
     {
         UiEventsMap.Remove(key);
     }
     MyView.RemoveUiEventListener(key);
 }
Exemplo n.º 3
0
 public void RemoveUiEventInterest(string key, Action <object> action)
 {
     if (!UiEventsMap.ContainsKey(key))
     {
         return;
     }
     UiEventsMap[key] -= action;
     if (UiEventsMap[key].GetInvocationList().Length == 0)
     {
         RemoveUiEventInterest(key);
     }
 }
Exemplo n.º 4
0
 public void AddUiEventInterest(string key, Action <object> action)
 {
     if (UiEventsMap.ContainsKey(key))
     {
         UiEventsMap[key] += action;
     }
     else
     {
         UiEventsMap.Add(key, action);
         MyView.AddUiEventListener(key, this);
     }
 }