home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / Sharpdev / 099bsetup.exe / ExampleView.xft < prev    next >
Extensible Markup Language  |  2003-09-21  |  2KB  |  83 lines

  1. <?xml version="1.0"?>
  2. <Template Originator="Mike Krueger" Language="C#" Created="09/04/2003" LastModified="09/04/2003">
  3.     
  4.     <TemplateConfiguration>
  5.         <Name>Simple #Develop view</Name>
  6.         <Icon>C#.File.FullFile</Icon>
  7.         <Category>SharpDevelop</Category>
  8.         <LanguageName>C#</LanguageName>
  9.         <Description>Creates a #Develop view content (for example text editor or resource editor)</Description>
  10.     </TemplateConfiguration>
  11.     
  12.     <TemplateFiles>
  13.         <File DefaultExtension=".cs" DefaultName="EmptyC#file">
  14.             <![CDATA[using System;
  15. using System.Windows.Forms;
  16. using ICSharpCode.SharpDevelop.Gui;
  17.  
  18. namespace MyView
  19. {
  20.     /// <summary>
  21.     /// Description of the view content
  22.     /// </summary>
  23.     public class MyView : AbstractViewContent
  24.     {
  25. #region AbstractViewContent requirements
  26.         /// <summary>
  27.         /// The <see cref="System.Windows.Forms.Control"/> representing the view
  28.         /// </summary>
  29.         public override Control Control {
  30.             get {
  31.                 //
  32.                 // TODO : Give back a working Windows.Forms Control
  33.                 //
  34.                 return null;
  35.             }
  36.         }
  37.         
  38.         /// <summary>
  39.         /// Creates a new MyView object
  40.         /// </summary>
  41.         public MyView()
  42.         {
  43.             ContentName = "MyViewContent";
  44.         }
  45.         
  46.         /// <summary>
  47.         /// Loads a new file into MyView
  48.         /// </summary>
  49.         public override void Load(string fileName)
  50.         {
  51.             // TODO
  52.             throw new System.NotImplementedException();
  53.         }
  54.  
  55.         /// <summary>
  56.         /// Refreshes the view
  57.         /// </summary>
  58.         public override void RedrawContent()
  59.         {
  60.             // TODO: Refresh the whole view control here, renew all resource strings whatever
  61.             //       Note that you do not need to recreate the control.
  62.         }
  63.         
  64.         /// <summary>
  65.         /// Cleans up all used resources
  66.         /// </summary>
  67.         public override void Dispose()
  68.         {
  69.             // TODO: Clean up resources in this method
  70.             // Control.Dispose();
  71.         }
  72. #endregion
  73.     }
  74.     
  75. }
  76. ]]>
  77.         </File>
  78.     </TemplateFiles>
  79.     
  80.     <FileOptions/>
  81.     
  82. </Template>
  83.