You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
952 B
30 lines
952 B
using System.Windows.Media; |
|
using System.Windows.Media.Imaging; |
|
using ICSharpCode.Core; |
|
using ICSharpCode.SharpDevelop.Templates; |
|
using ICSharpCode.SharpDevelop.Widgets; |
|
|
|
namespace ICSharpCode.SharpDevelop.Gui |
|
{ |
|
public class NewFileTemplate : ViewModelBase |
|
{ |
|
public NewFileTemplate(FileTemplate template, string categoryDescription) |
|
{ |
|
Template = template; |
|
CategoryDescription = categoryDescription; |
|
} |
|
|
|
public FileTemplate Template { get; private set; } |
|
public string CategoryDescription { get; set; } |
|
public string DisplayName { get { return Template.DisplayName; } } |
|
public string Description { get { |
|
return StringParser.Parse(Template.Description); |
|
} } |
|
|
|
public ImageSource Picture { get{ |
|
return Template.Icon.ImageSource; |
|
} |
|
} |
|
public string Name { get { return Template.Name; } } |
|
} |
|
} |