Example #1
0
 private void salvaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (FormFunctions.Salva(RTBText.Lines, ref FileName, ref flag_saved))
     {
         undoList.Clear();
         redoList.Clear();
     }
     FormFunctions.PopulateTreeView(TWfiles, FileName);
 }
Example #2
0
 private void pacchettoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     string[] errori;
     if (FormFunctions.Salva(RTBText.Lines, ref FileName, ref flag_saved))
     {
         undoList.Clear();
         redoList.Clear();
     }
     FormFunctions.PopulateTreeView(TWfiles, FileName);
     if (flag_saved)
     {
         if (FormFunctions.CompilaPacchetto(RTBText, FileName, out errori))
         {
             RTBLog.Lines = errori;
             errorConsoleToolStripMenuItem.Checked = true;
         }
     }
 }
Example #3
0
 private void tsbCompila_Click(object sender, EventArgs e)
 {
     string [] errori;
     if (FormFunctions.Salva(RTBText.Lines, ref FileName, ref flag_saved))
     {
         undoList.Clear();
         redoList.Clear();
     }
     FormFunctions.PopulateTreeView(TWfiles, FileName);
     if (flag_saved)
     {
         if (sender == tsbCompila)
         {
             if (toolStripComboBox1.SelectedIndex == 0)
             {
                 if (!FormFunctions.CompilaProgramma(RTBText, FileName, out errori))
                 {
                     RTBLog.Lines = errori;
                     errorConsoleToolStripMenuItem.Checked = true;
                 }
             }
             else
             {
                 if (!FormFunctions.CompilaPacchetto(RTBText, FileName, out errori))
                 {
                     RTBLog.Lines = errori;
                     errorConsoleToolStripMenuItem.Checked = true;
                 }
             }
         }
         else
         {
             if (!FormFunctions.CompilaProgramma(RTBText, FileName, out errori))
             {
                 RTBLog.Lines = errori;
                 errorConsoleToolStripMenuItem.Checked = true;
             }
         }
     }
 }