ApplicationContext.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. //
  2. // System.Windows.Forms.ApplicationContext
  3. //
  4. // Author:
  5. // stubbed out by Jaak Simm ([email protected])
  6. // Dennis hayes ([email protected])
  7. //
  8. // (C) Ximian, Inc 2002
  9. //
  10. namespace System.Windows.Forms {
  11. /// <summary>
  12. /// Specifies the contextual information about an application thread.
  13. ///
  14. /// ToDo note: Needsa Core; eg,==,!=,Gethascode,ToString.
  15. /// </summary>
  16. [MonoTODO]
  17. public class ApplicationContext {
  18. Form mainForm;
  19. // --- (public) Properties ---
  20. public Form MainForm {
  21. get { return mainForm; }
  22. set { mainForm = value; }
  23. }
  24. // --- Constructor ---
  25. public ApplicationContext()
  26. {
  27. mainForm=null;
  28. }
  29. public ApplicationContext(Form mainForm) : this()
  30. {
  31. this.mainForm=mainForm;
  32. }
  33. // --- Methods ---
  34. [MonoTODO]
  35. public void Dispose()
  36. {
  37. // see documentation on ApplicationContext.Dispose Method (Boolean)
  38. this.Dispose(true);
  39. }
  40. [MonoTODO]
  41. protected virtual void Dispose(bool disposing)
  42. {
  43. throw new NotImplementedException ();
  44. }
  45. [MonoTODO]
  46. public void ExitThread()
  47. {
  48. throw new NotImplementedException ();
  49. }
  50. [MonoTODO]
  51. protected virtual void ExitThreadCore()
  52. {
  53. throw new NotImplementedException ();
  54. }
  55. [MonoTODO]
  56. protected virtual void OnMainFormClosed(object sender,EventArgs e)
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. // --- Methods: object ---
  61. [MonoTODO]
  62. ~ApplicationContext() {
  63. // see documentation on ApplicationContext.Dispose Method (Boolean)
  64. this.Dispose(false);
  65. }
  66. // --- Events ---
  67. public event EventHandler ThreadExit;
  68. }
  69. }