예제 #1
0
        ///
        virtual public void SaveTxtFile()
        {
            string fname = TxtManagerUtility.file_get_save();

            if (fname == string.Empty)
            {
                return;
            }
            TxtManagerUtility.file_save(fname, Enc, TextArray);
            OnFileNameChanged(fname, "saved");
        }
예제 #2
0
 ///
 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");
 }
예제 #3
0
 ///
 virtual public void SaveTxtFile(string fname)
 {
     TxtManagerUtility.file_save(fname, Enc, TextArray);
 }
예제 #4
0
 ///
 virtual public void LoadTxtFile()
 {
     FileName = TxtManagerUtility.file_get_load();
 }