42 lines
1008 B
C#
42 lines
1008 B
C#
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.ComponentModel;
|
||
|
using System.Data;
|
||
|
using System.Drawing;
|
||
|
using System.Text;
|
||
|
using System.Windows.Forms;
|
||
|
using DevComponents.DotNetBar;
|
||
|
|
||
|
namespace WzComparerR2.LuaConsole
|
||
|
{
|
||
|
public partial class FrmLuaEditor : DevComponents.DotNetBar.OfficeForm
|
||
|
{
|
||
|
public FrmLuaEditor()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
textEditorControl1.SetHighlighting("Lua");
|
||
|
}
|
||
|
|
||
|
public void LoadFile(string fileName)
|
||
|
{
|
||
|
this.textEditorControl1.LoadFile(fileName, false, true);
|
||
|
}
|
||
|
|
||
|
public void SaveFile(string fileName)
|
||
|
{
|
||
|
this.textEditorControl1.SaveFile(fileName);
|
||
|
}
|
||
|
|
||
|
public string FileName
|
||
|
{
|
||
|
get { return this.textEditorControl1.FileName; }
|
||
|
set { this.textEditorControl1.FileName = value; }
|
||
|
}
|
||
|
|
||
|
public string CodeContent
|
||
|
{
|
||
|
get { return this.textEditorControl1.Text; }
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|