mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
31 lines
768 B
C#
31 lines
768 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using RainmeterStudio.Core;
|
|
using RainmeterStudio.Core.Editor;
|
|
using RainmeterStudio.Core.Model;
|
|
|
|
namespace RainmeterStudio.Editor.SkinDesigner
|
|
{
|
|
/// <summary>
|
|
/// Creates skin designers
|
|
/// </summary>
|
|
[PluginExport]
|
|
public class SkinDesignerFactory : IDocumentEditorFactory
|
|
{
|
|
/// <inheritdoc />
|
|
public IDocumentEditor CreateEditor(IDocument document)
|
|
{
|
|
return new SkinDesignerUI((SkinDocument)document);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public bool CanEdit(Type type)
|
|
{
|
|
return type == typeof(SkinDocument);
|
|
}
|
|
}
|
|
}
|