<?xml version="1.0"?>
<Template author="Mike Krueger" version="1.0">
	
	<Config
		  name        = "${res:Templates.File.SharpDevelop.AddInOptions.Name}"
		  icon        = "C#.File.FullFile"
		  category    = "#Develop"
		  defaultname = "AddInOptions${Number}.cs"
		  language    = "C#"/>
	 
	<Description>${res:Templates.File.SharpDevelop.AddInOptions.Description}</Description>
	
	<!-- 
	Special new file templates:
		${StandardNamespace}        -> Standardnamespace of the current project or FileNameWithoutExtension
		${FullName}                 -> Full generated path name
		${FileName}                 -> File name with extension
		${FileNameWithoutExtension} -> File name without extension
		${Extension}                -> Extension in the form ".cs"
		${Path}                     -> Full path of the file
	 -->
	<Files>
		<File name="${FullName}" language="C#"><![CDATA[${StandardHeader.C#}
using System;
using ICSharpCode.Core;

namespace ${StandardNamespace}
{
	public class AddInOptions
	{
		public const string OptionsProperty = "${StandardNamespace}.Options";
		
		static Properties properties;
		
		static AddInOptions()
		{
			properties = PropertyService.GetProperty(OptionsProperty, new Properties());
		}
		
		public static event PropertyChangedEventHandler PropertyChanged {
			add    { properties.PropertyChanged += value; }
			remove { properties.PropertyChanged -= value; }
		}
		
//		public static string MyStringProperty {
//			get {
//				return properties.GetProperty("MyStringProperty", "DefaultValue");
//			}
//			set {
//				properties.SetProperty("MyStringProperty", value);
//			}
//		}
	}
}
]]>
		</File>
	</Files>
	
	<AdditionalOptions/>
	
</Template>
