mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
28 lines
745 B
C#
28 lines
745 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.IO;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using RainmeterEditor.Model;
|
|||
|
|
|||
|
namespace RainmeterEditor.Documents.Text
|
|||
|
{
|
|||
|
public class TextEditor : IDocumentEditor
|
|||
|
{
|
|||
|
private TextDocument _document;
|
|||
|
private TextEditorControl _control;
|
|||
|
|
|||
|
public TextEditor(TextDocument document)
|
|||
|
{
|
|||
|
_document = document;
|
|||
|
_control = new TextEditorControl(document);
|
|||
|
}
|
|||
|
|
|||
|
public override IDocument Document { get { return _document; } }
|
|||
|
|
|||
|
public override string Title { get { return _document.Name; } }
|
|||
|
|
|||
|
public override System.Windows.UIElement EditorUI { get { return _control; } }
|
|||
|
}
|
|||
|
}
|