DockedHandler.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2004 Todd Berman <tberman@off.net>
  5. * Copyright (C) 2004 Jeroen Zwartepoorte <jeroen@xs4all.nl>
  6. * Copyright (C) 2005 John Luke <john.luke@gmail.com>
  7. *
  8. * based on work by:
  9. * Copyright (C) 2002 Gustavo Giráldez <gustavo.giraldez@gmx.net>
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place - Suite 330,
  24. * Boston, MA 02111-1307, USA.
  25. */
  26. using System;
  27. namespace Gdl
  28. {
  29. public delegate void DockedHandler (object o, DockedArgs args);
  30. public class DockedArgs : EventArgs {
  31. private DockObject requestor;
  32. private DockPlacement position;
  33. public DockedArgs (DockObject requestor, DockPlacement position)
  34. {
  35. this.requestor = requestor;
  36. this.position = position;
  37. }
  38. public DockObject Requestor {
  39. get {
  40. return requestor;
  41. }
  42. }
  43. public DockPlacement Position {
  44. get {
  45. return position;
  46. }
  47. }
  48. }
  49. }