~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to samples/Mono/Mono.AddIn/Templates/CSharpGtkProject.xpt

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<Template originator   = "Matt Ward"
 
3
          created      = "01/01/2006"
 
4
          lastModified = "14/06/2006">
 
5
        
 
6
        <!-- Template Header -->
 
7
        <TemplateConfiguration>
 
8
                <Name>Gtk# Application</Name>
 
9
                <Category>C#</Category>
 
10
                <Subcategory>Mono</Subcategory>
 
11
                <Icon>C#.Project.Form</Icon>
 
12
                <Description>A project that creates a Gtk# application.</Description>
 
13
        </TemplateConfiguration>
 
14
        
 
15
        <!-- Actions -->
 
16
        <Actions>
 
17
                <Open filename = "MainWindow.cs"/>
 
18
        </Actions>
 
19
        
 
20
        <Project language = "C#">
 
21
                <PropertyGroup>
 
22
                        <OutputType>WinExe</OutputType>
 
23
                        <MonoTargetFrameworkVersion>v2.0</MonoTargetFrameworkVersion>
 
24
                </PropertyGroup>
 
25
                
 
26
                <Imports clear="True">
 
27
                        <Import Project="$(MonoBuildTasksPath)\Mono.Build.CSharp.targets" />
 
28
                </Imports>
 
29
                
 
30
                <ProjectItems>
 
31
                        <Reference Include="atk-sharp" />
 
32
                        <Reference Include="gdk-sharp" />
 
33
                        <Reference Include="glib-sharp" />
 
34
                        <Reference Include="gtk-sharp" />
 
35
                        <Reference Include="pango-sharp" />
 
36
                        <Reference Include="System" />
 
37
                </ProjectItems>
 
38
                
 
39
                <Files>
 
40
                        <File name="MainWindow.cs"><![CDATA[${StandardHeader.C#}
 
41
 
 
42
using Gtk;
 
43
using System;
 
44
 
 
45
namespace ${StandardNamespace}
 
46
{
 
47
/// <summary>
 
48
/// Description of MainWindow.
 
49
/// </summary>
 
50
public class MainWindow : Window
 
51
{
 
52
        public MainWindow() : base("MainWindow")
 
53
        {
 
54
                DeleteEvent += new DeleteEventHandler(MainWindowDeleteEvent);
 
55
                ShowAll();
 
56
        }
 
57
        
 
58
        [STAThread]
 
59
        public static void Main(string[] arg)
 
60
        {
 
61
                Application.Init();
 
62
                new MainWindow();
 
63
                Application.Run();
 
64
        }
 
65
        
 
66
        void MainWindowDeleteEvent(object o, DeleteEventArgs args)
 
67
        {
 
68
                Application.Quit();
 
69
                args.RetVal = true;
 
70
        }
 
71
}
 
72
}]]></File>
 
73
                        <File name="AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
 
74
                        <File name="app.config" src="DefaultApp.config"/>
 
75
                </Files>
 
76
        </Project>
 
77
</Template>