private void guardarToolStripMenuItem1_Click(object sender, EventArgs e) { if (saveFileDialog1.FileName == "" && openFileDialog1.FileName == "") { guardarComoToolStripMenuItem_Click(sender, e); } else { ArchivoTexto.Guardar(saveFileDialog1.FileName, richTextBox1.Text); } }
private void guardarComoToolStripMenuItem_Click(object sender, EventArgs e) { saveFileDialog1.ShowDialog(); ArchivoTexto.Guardar(saveFileDialog1.FileName, richTextBox1.Text); }