public void Add(object o, string label, Action reset, Action restore) { ResetHandlerKey hkey = new ResetHandlerKey() { Object = o, Label = label }; Handlers[hkey] = new HandlerSet { Reset = reset, Restore = restore }; }
public void Remove(object o, string label) { ResetHandlerKey hkey = new ResetHandlerKey() { Object = o, Label = label }; if (Handlers.ContainsKey(hkey)) { Handlers.Remove(hkey); } }
public void Remove(object o, string label) { ResetHandlerKey hkey = new ResetHandlerKey() { Object = o, Label = label }; if(Handlers.ContainsKey(hkey)) Handlers.Remove(hkey); }