1
0
mirror of synced 2024-12-04 20:08:00 +01:00
Switch-Toolbox/File_Format_Library/GUI/BFLYT/LayoutTextDocked.cs
KillzXGaming f92195e8e1 Add wip bflyt saving.
Todo prts,usd, and bnd1 section is needed however
2019-09-01 13:02:48 -04:00

38 lines
803 B
C#

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;
using LayoutBXLYT.Cafe;
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());
}
}
}