private void Btn_Save_Click(object sender, EventArgs e) { SaveFileDialog sfd = new SaveFileDialog(); if (sfd.ShowDialog() == DialogResult.OK) { FileKezelo.SaveData(sfd.FileName, richTextBox1.Text); } }
private void Btn_Load_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() == DialogResult.OK) { string temp; FileKezelo.LoadData(ofd.FileName, out temp); richTextBox1.Text = temp; } }