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.UserControl.xft < prev    next >
Extensible Markup Language  |  2004-11-04  |  2KB  |  73 lines

  1. <?xml version="1.0"?>
  2. <Template author="Mike Krueger" version="1.0">
  3.     
  4.     <Config
  5.         name        = "${res:Templates.File.WindowsUserControl.Name}"
  6.         icon        = "C#.File.Form"
  7.         category    = "C#"
  8.         defaultname = "UserControl${Number}.cs"
  9.         language    = "C#"
  10.     />
  11.      
  12.     <Description>${res:Templates.File.WindowsUserControl.Description}</Description>
  13.     
  14.     <!-- 
  15.     Special new file templates:
  16.         ${StandardNamespace}        -> Standardnamespace of the current project or FileNameWithoutExtension
  17.         ${FullName}                 -> Full generated path name
  18.         ${FileName}                 -> File name with extension
  19.         ${FileNameWithoutExtension} -> File name without extension
  20.         ${Extension}                -> Extension in the form ".cs"
  21.         ${Path}                     -> Full path of the file
  22.      -->
  23.     <Files>
  24.         <File name="${FullName}" language="C#"><![CDATA[${StandardHeader.C#}
  25.  
  26. using System;
  27. using System.ComponentModel;
  28. using System.Drawing;
  29. using System.Windows.Forms;
  30.  
  31. namespace ${StandardNamespace}
  32. {
  33.     /// <summary>
  34.     /// Description of ${ClassName}.
  35.     /// </summary>
  36.     public class ${ClassName} : System.Windows.Forms.UserControl
  37.     {
  38.         public ${ClassName}()
  39.         {
  40.             //
  41.             // The InitializeComponent() call is required for Windows Forms designer support.
  42.             //
  43.             InitializeComponent();
  44.             
  45.             //
  46.             // TODO: Add constructor code after the InitializeComponent() call.
  47.             //
  48.         }
  49.         
  50.         #region Windows Forms Designer generated code
  51.         /// <summary>
  52.         /// This method is required for Windows Forms designer support.
  53.         /// Do not change the method contents inside the source code editor. The Forms designer might
  54.         /// not be able to load this method if it was changed manually.
  55.         /// </summary>
  56.         private void InitializeComponent()
  57.         {
  58.             // 
  59.             // ${ClassName}
  60.             // 
  61.             this.Name = "${ClassName}";
  62.             this.Size = new System.Drawing.Size(292, 266);
  63.         }
  64.         #endregion
  65.     }
  66. }
  67. ]]></File>
  68.     </Files>
  69.     
  70.     <AdditionalOptions/>
  71. </Template>
  72.  
  73.