예제 #1
0
 public void Unregister(FunctionBySingle action)
 {
     if (updates != null)
     {
         updates -= action;
     }
 }
예제 #2
0
 public void Register(FunctionBySingle action)
 {
     if (updates != null)
     {
         foreach (var function in updates.GetInvocationList())
         {
             if (function.Equals(action))
             {
                 return;
             }
         }
         updates += action;
     }
     else
     {
         updates = action;
     }
 }