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

  1. <?xml version="1.0"?>
  2. <Template author="Mike Krueger" version="1.0">
  3.     
  4.     <Config
  5.         name        = "${res:Templates.File.#Develop.OptionPanel.Name}"
  6.         icon        = "C#.File.FullFile"
  7.         category    = "#Develop"
  8.         defaultname = "NewOptionPanel${Number}.cs"
  9.         language    = "C#"/>
  10.      
  11.     <Description>${res:Templates.File.#Develop.OptionPanel.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.Collections;
  26. using System.ComponentModel;
  27. using System.Drawing;
  28. using System.Windows.Forms;
  29.  
  30. using ICSharpCode.Core.AddIns.Codons;
  31. using ICSharpCode.Core.Properties;
  32. using ICSharpCode.Core.Services;
  33. using ICSharpCode.SharpDevelop.Internal.Project;
  34. using ICSharpCode.SharpDevelop.Gui.Dialogs;
  35.  
  36. namespace ${StandardNamespace}
  37. {
  38.     /// <summary>
  39.     /// Summary of ${FileNameWithoutExtension}
  40.     /// </summary>
  41.     public class ${FileNameWithoutExtension} : AbstractOptionPanel
  42.     {
  43.         public override void LoadPanelContents()
  44.         {
  45.             // TODO initialize the panel here
  46.         }
  47.  
  48.         public override bool StorePanelContents()
  49.         {
  50.             // TODO save your options here
  51.             return true;
  52.         }
  53.     }
  54. }]]>
  55.         </File>
  56.     </Files>
  57.     
  58.     <AdditionalOptions/>
  59.     
  60. </Template>
  61.