home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Programare / Sharp / SharpDevelop_1.0.3.1761_Setup.exe / CSharp.Forms.Form.xft < prev    next >
Extensible Markup Language  |  2004-10-06  |  2KB  |  73 lines

  1. <?xml version="1.0"?>
  2. <Template author="Mike Krueger" version="1.0">
  3.     
  4.     <Config
  5.           name        = "${res:Templates.File.WindowsForm.Name}"
  6.           icon        = "C#.File.Form"
  7.           category    = "C#"
  8.           defaultname = "Form${Number}.cs"
  9.           language    = "C#"/>
  10.      
  11.     <Description>${res:Templates.File.WindowsForm.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.         ${ClassName}                -> Class name (generally FileNameWithoutExtension w/o 'bad' characters)
  22.      -->
  23.     <Files>
  24.         <File name="${FullName}" language="C#"><![CDATA[${StandardHeader.C#}
  25.  
  26. using System;
  27. using System.Drawing;
  28. using System.Windows.Forms;
  29.  
  30. namespace ${StandardNamespace}
  31. {
  32.     /// <summary>
  33.     /// Description of ${ClassName}.
  34.     /// </summary>
  35.     public class ${ClassName} : System.Windows.Forms.Form
  36.     {
  37.         public ${ClassName}()
  38.         {
  39.             //
  40.             // The InitializeComponent() call is required for Windows Forms designer support.
  41.             //
  42.             InitializeComponent();
  43.             
  44.             //
  45.             // TODO: Add constructor code after the InitializeComponent() call.
  46.             //
  47.         }
  48.         
  49.         #region Windows Forms Designer generated code
  50.         /// <summary>
  51.         /// This method is required for Windows Forms designer support.
  52.         /// Do not change the method contents inside the source code editor. The Forms designer might
  53.         /// not be able to load this method if it was changed manually.
  54.         /// </summary>
  55.         private void InitializeComponent()
  56.         {
  57.             // 
  58.             // ${ClassName}
  59.             // 
  60.             this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  61.             this.ClientSize = new System.Drawing.Size(292, 266);
  62.             this.Text = "${ClassName}";
  63.             this.Name = "${ClassName}";
  64.         }
  65.         #endregion
  66.     }
  67. }
  68. ]]></File>
  69.     </Files>
  70.     
  71.     <AdditionalOptions/>
  72. </Template>
  73.