/// virtual public void SaveTxtFile() { string fname = TxtManagerUtility.file_get_save(); if (fname == string.Empty) { return; } TxtManagerUtility.file_save(fname, Enc, TextArray); OnFileNameChanged(fname, "saved"); }
/// virtual public void LoadTxtFile(string fname) { if (!System.IO.File.Exists(fname)) { System.Windows.Forms.MessageBox.Show( "There was an error loading the file", "Error — File does not exist…", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation); return; } TextArray = TxtManagerUtility.file_load(fname, Enc); OnFileNameChanged(fname, "loaded"); }
/// virtual public void SaveTxtFile(string fname) { TxtManagerUtility.file_save(fname, Enc, TextArray); }
/// virtual public void LoadTxtFile() { FileName = TxtManagerUtility.file_get_load(); }