home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Programare / Sharp / SharpDevelop_1.0.3.1761_Setup.exe / ExamplePad.xft < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-05  |  2.2 KB  |  84 lines

  1. <?xml version="1.0"?>
  2. <Template author="Mike Krueger" version="1.0">
  3.     
  4.     <Config
  5.           name        = "${res:Templates.File.#Develop.SimplePad.Name}"
  6.           icon        = "C#.File.FullFile"
  7.           category    = "#Develop"
  8.           defaultname = "NewPad${Number}.cs"
  9.           language    = "C#"/>
  10.      
  11.     <Description>${res:Templates.File.#Develop.SimplePad.Description}</Description>
  12.     
  13.     <!-- 
  14.     Special new file templates:
  15.         ${StandardNamespace}        -> Standardnamespace of the current project or FileNameWithoutExtension
  16.         ${FullName}                 -> Full generated path name
  17.         ${FileName}                 -> File name with extension
  18.         ${FileNameWithoutExtension} -> File name without extension
  19.         ${Extension}                -> Extension in the form ".cs"
  20.         ${Path}                     -> Full path of the file
  21.      -->
  22.     <Files>
  23.         <File name="${FullName}" language="C#"><![CDATA[${StandardHeader.C#}
  24. using System;
  25. using System.Windows.Forms;
  26. using ICSharpCode.SharpDevelop.Gui;
  27.  
  28. namespace ${StandardNamespace}
  29. {
  30.     /// <summary>
  31.     /// Description of the pad content
  32.     /// </summary>
  33.     public class ${FileNameWithoutExtension} : AbstractPadContent
  34.     {
  35. #region AbstractPadContent requirements
  36.         /// <summary>
  37.         /// The <see cref="System.Windows.Forms.Control"/> representing the pad
  38.         /// </summary>
  39.         public override Control Control {
  40.             get {
  41.                 //
  42.                 // TODO : Give back a working Windows.Forms Control
  43.                 //
  44.                 return null;
  45.             }
  46.         }
  47.         
  48.         /// <summary>
  49.         /// Creates a new ${FileNameWithoutExtension} object
  50.         /// </summary>
  51.         public ${FileNameWithoutExtension}() : base("The Title of ${FileNameWithoutExtension}")
  52.         {
  53.             // TODO: Optionally set the icon resource name with Icon = "YourIconResourceName";
  54.         }
  55.         
  56.         /// <summary>
  57.         /// Refreshes the pad
  58.         /// </summary>
  59.         public override void RedrawContent()
  60.         {
  61.             // TODO: Refresh the whole pad control here, renew all resource strings whatever
  62.             //       Note that you do not need to recreate the control.
  63.         }
  64.         
  65.         /// <summary>
  66.         /// Cleans up all used resources
  67.         /// </summary>
  68.         public override void Dispose()
  69.         {
  70.             // TODO: Clean up resources in this method
  71.             // Control.Dispose();
  72.         }
  73. #endregion
  74.     }
  75.     
  76. }
  77. ]]>
  78.         </File>
  79.     </Files>
  80.     
  81.     <AdditionalOptions/>
  82.     
  83. </Template>
  84.