示例#1
0
            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
                };
            }
示例#2
0
            public void Remove(object o, string label)
            {
                ResetHandlerKey hkey = new ResetHandlerKey()
                {
                    Object = o, Label = label
                };

                if (Handlers.ContainsKey(hkey))
                {
                    Handlers.Remove(hkey);
                }
            }
示例#3
0
			public void Remove(object o, string label)
			{
				ResetHandlerKey hkey = new ResetHandlerKey() { Object = o, Label = label };
				if(Handlers.ContainsKey(hkey))
					Handlers.Remove(hkey);
			}
示例#4
0
			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 };
			}