Exemplo n.º 1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            Process p = new Process();

            p.StartInfo.FileName = "minipas.exe";
            string filename = BasicCommand.GetCurrentFileName(editor);

            if (filename.Equals("@new"))
            {
                BasicCommand.SaveFile(editor);
                filename = BasicCommand.GetCurrentFileName(editor);
            }
            if (!filename.Equals("@new"))
            {
                p.StartInfo.Arguments       = filename;
                p.StartInfo.UseShellExecute = true;
                p.Start();
                p.WaitForExit();
            }
        }
Exemplo n.º 2
0
 private void pasteToolStripButton_Click(object sender, EventArgs e)
 {
     BasicCommand.PasteText(editor);
 }
Exemplo n.º 3
0
 private void cutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     BasicCommand.CutText(editor);
 }
Exemplo n.º 4
0
 private void newToolStripButton_Click(object sender, EventArgs e)
 {
     BasicCommand.NewFile(editor);
 }
Exemplo n.º 5
0
 private void copyToolStripButton_Click(object sender, EventArgs e)
 {
     BasicCommand.CopyText(editor);
 }
Exemplo n.º 6
0
 private void closeAllButThisToolStripMenuItem_Click(object sender, EventArgs e)
 {
     BasicCommand.CloseAllButThisTab(editor);
 }
Exemplo n.º 7
0
 private void openToolStripButton_Click(object sender, EventArgs e)
 {
     BasicCommand.OpenFile(editor);
 }
Exemplo n.º 8
0
 private void undoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     BasicCommand.Undo(editor);
 }
Exemplo n.º 9
0
 private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     BasicCommand.SaveAsFile(editor);
 }
Exemplo n.º 10
0
 private void saveToolStripButton_Click(object sender, EventArgs e)
 {
     BasicCommand.SaveFile(editor);
 }