public partial class exec : Form
foreach (string path in Directory.GetFiles("./Lua c scripts"))
this.ScriptBox1.Items.Add(Path.GetFileName(path));
using (var soundPlayer = new SoundPlayer("./Data/error.wav"))
bool flag = MessageBox.Show("Should I create a few folders at the current directory?", "Error: Could not locate folders!.", MessageBoxButtons.YesNo) != DialogResult.Yes;
Directory.CreateDirectory("./Lua c scripts");
foreach (string path2 in Directory.GetFiles("./Lua c scripts"))
this.ScriptBox1.Items.Add(Path.GetFileName(path2));
private void LuaCBox_MouseDoubleClick(object sender, MouseEventArgs e)
string text = File.ReadAllText("./Lua c scripts/" + this.ScriptBox1.SelectedItems[0]);
this.LuaCBox.Text = text;
string text2 = File.ReadAllText("./Lua c scripts/" + this.ScriptBox1.SelectedItems[0]);
this.LuaCBox.Text = text2;
private void executeToolStripMenuItem_Click(object sender, EventArgs e)
string a = File.ReadAllText("./Lua c scripts/" + this.ScriptBox1.SelectedItems[0]);
bool flag = a == " " || a == " ";
foreach (string command in this.LuaCBox.Text.Split("\r\n".ToCharArray()))
exec.runCommand(command);
private static void runCommand(string command)
throw new NotImplementedException();
private void loadIntoShitToolStripMenuItem_Click(object sender, EventArgs e)
string text = File.ReadAllText("./Lua c scripts/" + this.ScriptBox1.SelectedItems[0]);
this.LuaCBox.Text = text;
string text2 = File.ReadAllText("./Lua c scripts/" + this.ScriptBox1.SelectedItems[0]);
this.LuaCBox.Text = text2;
private void bunifuImageButton13_Click(object sender, EventArgs e)
string text = File.ReadAllText("./Lua c scripts/" + this.ScriptBox1.SelectedItems[0]);
this.LuaCBox.Text = text;
string text2 = File.ReadAllText("./Lua c scripts/" + this.ScriptBox1.SelectedItems[0]);
this.LuaCBox.Text = text2;
private void bunifuImageButton12_Click(object sender, EventArgs e)
IDataObject iData = Clipboard.GetDataObject();
if (iData.GetDataPresent(DataFormats.Text))
LuaCBox.Text = (String)iData.GetData(DataFormats.Text);