PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/Visual Studio 2008/CSVstoGetWrapperObject/ThisAddIn.cs

#
C# | 59 lines | 30 code | 7 blank | 22 comment | 0 complexity | 374c36e43c58096419f85c74ef6412d3 MD5 | raw file
  1. /************************************* Module Header **************************************\
  2. * Module Name: ThisAddIn.cs
  3. * Project: CSVstoGetWrapperObject
  4. * Copyright (c) Microsoft Corporation.
  5. *
  6. * The CSVstoGetWrapperObject project demonstrates how to get a VSTO wrapper
  7. * object from an existing Office COM object.
  8. *
  9. * This feature requires Visual Studio Tools for Office 3.0 SP1 (included in
  10. * Visual Studio 2008 SP1) for both design-time and runtime support.
  11. *
  12. * This source is subject to the Microsoft Public License.
  13. * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
  14. * All other rights reserved.
  15. *
  16. * History:
  17. * * 6/13/2009 3:00 PM Wang Jie Created
  18. \******************************************************************************************/
  19. #region Using directives
  20. using System;
  21. using System.Collections.Generic;
  22. using System.Linq;
  23. using System.Text;
  24. using System.Xml.Linq;
  25. using Excel = Microsoft.Office.Interop.Excel;
  26. using Office = Microsoft.Office.Core;
  27. using Microsoft.Office.Tools.Excel;
  28. using Microsoft.Office.Tools.Excel.Extensions;
  29. #endregion
  30. namespace CSVstoGetWrapperObject
  31. {
  32. public partial class ThisAddIn
  33. {
  34. private void ThisAddIn_Startup(object sender, System.EventArgs e)
  35. {
  36. }
  37. private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
  38. {
  39. }
  40. #region VSTO generated code
  41. /// <summary>
  42. /// Required method for Designer support - do not modify
  43. /// the contents of this method with the code editor.
  44. /// </summary>
  45. private void InternalStartup()
  46. {
  47. this.Startup += new System.EventHandler(ThisAddIn_Startup);
  48. this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
  49. }
  50. #endregion
  51. }
  52. }