mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
35 lines
845 B
C#
35 lines
845 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.IO;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using RainmeterStudio.Core;
|
|||
|
using RainmeterStudio.Core.Storage;
|
|||
|
|
|||
|
namespace RainmeterStudio.Editor.SkinDesigner
|
|||
|
{
|
|||
|
[PluginExport]
|
|||
|
public class SkinStorage : IDocumentStorage
|
|||
|
{
|
|||
|
public Core.Model.IDocument ReadDocument(string path)
|
|||
|
{
|
|||
|
return new SkinDocument();
|
|||
|
}
|
|||
|
|
|||
|
public void WriteDocument(Core.Model.IDocument document, string path)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public bool CanReadDocument(string path)
|
|||
|
{
|
|||
|
return Path.GetExtension(path) == ".rsskin";
|
|||
|
}
|
|||
|
|
|||
|
public bool CanWriteDocument(Type documentType)
|
|||
|
{
|
|||
|
return documentType == typeof(SkinDocument);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|