private void examplesToolStripMenuItem_Click(object sender, EventArgs e) { string filePath = global.GetRegistryString("", "Path"); frmCodeBrowser form = new frmCodeBrowser(filePath + "\\IDE\\Examples", false, "Examples", "These are functionality examples and can be used to learn, study and save large portions of code."); if (form.ShowDialog() == DialogResult.OK) { DocTabPage tabPage = AddNewTab(); tabPage.CodeEditor.Document.Text = form.CodeText; } }
private void libraryToolStripMenuItem_Click(object sender, EventArgs e) { string filePath = global.GetRegistryString("", "Path"); frmCodeBrowser form = new frmCodeBrowser(filePath + "\\Library", false, "Standard Library", "This is the Simple Scriping Engine standard abstraction library. These scripts can be included into your projects " + " to provide a seamless interface between the standard windows API and the scripting engine."); if (form.ShowDialog() == DialogResult.OK) { DocTabPage tabPage = AddNewTab(form.Filename); } }
private void cmdSnippets_Click(object sender, EventArgs e) { if (CurrentTab != null) { string filePath = global.GetRegistryString("", "Path"); frmCodeBrowser form = new frmCodeBrowser(filePath + "\\IDE\\Snippets", true, "Snippets", "Snippets provide an easy method of saving frequently used peices of code and inserting them into your project."); if (form.ShowDialog() == DialogResult.OK) { CurrentTab.CodeEditor.Document.InsertText( form.CodeText, CurrentTab.CodeEditor.Caret.Position.X, CurrentTab.CodeEditor.Caret.Position.Y, true); } } }