1
0
mirror of synced 2024-11-15 03:27:38 +01:00
Switch-Toolbox/File_Format_Library/GUI/BFLYT/LayoutTextDocked.cs

37 lines
779 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Toolbox.Library.Forms;
namespace LayoutBXLYT
{
public partial class LayoutTextDocked : LayoutDocked
{
TextEditor editor;
public LayoutTextDocked()
{
InitializeComponent();
editor = new TextEditor();
editor.Dock = DockStyle.Fill;
Controls.Add(editor);
}
public void Reset()
{
editor.FillEditor("");
}
public void LoadLayout(BFLYT bflyt)
{
editor.FillEditor(bflyt.ConvertToString());
}
}
}