Form1.cs
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows.Forms;namespace_0060 {-
publicpartialclassForm1 : Form { -
publicForm1() { -
InitializeComponent(); -
richTextBox1.Select(); -
} -
privatevoidbutton1_Click(objectsender, EventArgs e) { -
saveFileDialog1.Filter ="Text (*.txt) | *.txt"; -
if(saveFileDialog1.ShowDialog() == DialogResult.OK) { -
richTextBox1.SaveFile(saveFileDialog1.FileName, RichTextBoxStreamType.PlainText); -
} -
textBox1.Visible =true; -
textBox1.Text = saveFileDialog1.FileName; -
} -
privatevoidbutton2_Click(objectsender, EventArgs e) { -
richTextBox1.Clear(); -
textBox1.Clear(); -
textBox1.Visible =false; -
} -
} }
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows.Forms;namespace_0060 {-
publicpartialclassForm1 : Form { -
publicForm1() { -
InitializeComponent(); -
richTextBox1.Select(); -
} -
privatevoidbutton1_Click(objectsender, EventArgs e) { -
saveFileDialog1.Filter ="Text (*.txt) | *.txt"; -
if(saveFileDialog1.ShowDialog() == DialogResult.OK) { -
richTextBox1.SaveFile(saveFileDialog1.FileName, RichTextBoxStreamType.PlainText); -
} -
textBox1.Visible =true; -
textBox1.Text = saveFileDialog1.FileName; -
} -
privatevoidbutton2_Click(objectsender, EventArgs e) { -
richTextBox1.Clear(); -
textBox1.Clear(); -
textBox1.Visible =false; -
} -
} }