RefreshEventArgs.cs 742 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // System.ComponentModel.RefreshEventArgs.cs
  3. //
  4. // Author:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc (http://www.ximian.com)
  8. //
  9. using System;
  10. namespace System.ComponentModel
  11. {
  12. public class RefreshEventArgs : EventArgs
  13. {
  14. private object component;
  15. private Type type;
  16. public RefreshEventArgs (object componentChanged)
  17. {
  18. if (componentChanged == null)
  19. throw new ArgumentNullException ("componentChanged");
  20. component = componentChanged;
  21. type = component.GetType ();
  22. }
  23. public RefreshEventArgs (Type typeChanged)
  24. {
  25. type = typeChanged;
  26. }
  27. public object ComponentChanged
  28. {
  29. get { return component; }
  30. }
  31. public Type TypeChanged
  32. {
  33. get { return type; }
  34. }
  35. }
  36. }