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

  1. <?xml version="1.0"?>
  2. <Template author="Mike Krueger" version="1.0">
  3.     
  4.     <Config
  5.         name        = "${res:Templates.File.#Develop.View.Name}"
  6.         icon        = "C#.File.FullFile"
  7.         category    = "#Develop"
  8.         defaultname = "View${Number}.cs"
  9.         language    = "C#"/>
  10.      
  11.     <Description>${res:Templates.File.#Develop.View.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 view content
  32.     /// </summary>
  33.     public class ${FileNameWithoutExtension} : AbstractViewContent
  34.     {
  35. #region AbstractViewContent requirements
  36.         /// <summary>
  37.         /// The <see cref="System.Windows.Forms.Control"/> representing the view
  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}()
  52.         {
  53.             ContentName = "${FileNameWithoutExtension}";
  54.         }
  55.         
  56.         /// <summary>
  57.         /// Loads a new file into MyView
  58.         /// </summary>
  59.         public override void Load(string fileName)
  60.         {
  61.             // TODO
  62.             throw new System.NotImplementedException();
  63.         }
  64.  
  65.         /// <summary>
  66.         /// Refreshes the view
  67.         /// </summary>
  68.         public override void RedrawContent()
  69.         {
  70.             // TODO: Refresh the whole view control here, renew all resource strings whatever
  71.             //       Note that you do not need to recreate the control.
  72.         }
  73.         
  74.         /// <summary>
  75.         /// Cleans up all used resources
  76.         /// </summary>
  77.         public override void Dispose()
  78.         {
  79.             // TODO: Clean up resources in this method
  80.             // Control.Dispose();
  81.         }
  82. #endregion
  83.     }
  84.     
  85. }
  86. ]]>
  87.         </File>
  88.     </Files>
  89.     
  90.     <AdditionalOptions/>
  91.     
  92. </Template>
  93.