Ejemplo n.º 1
0
      private void Archivo_Click(object sender, EventArgs e)
      {
          Guardar guar = new Guardar("");

          Program.ventana = this;
          bandera         = true;
          guar.Show();
      }
Ejemplo n.º 2
0
      private void guardar_Click(object sender, EventArgs e)
      {
          TabPage tabPagex = tabControl1.SelectedTab;

          foreach (FastColoredTextBox hijo in tabPagex.Controls)
          {
              if (File.Exists(hijo.Name))
              {
                  string[] lines = hijo.Text.Split('\n');
                  System.IO.File.WriteAllLines(hijo.Name, lines);
              }
              else
              {
                  Guardar guar = new Guardar(hijo.Text);
                  Program.ventana = this;
                  guar.Show();
              }
              return;
          }
      }