Ejemplo n.º 1
0
 private void CloseWriteFileThread()
 {
     if ( TxtFileObject != null)
     {
         TxtFileObject.CloseWriteFile();
         myListBox("Correct : File" + WriteFileName.Text + " is close now!!", ListMsg);
         TxtFileObject = null;
     }
     else
     {
         myListBox("Error : File " + WriteFileName.Text + " is not opened!!", ListMsg);
     }
 }
Ejemplo n.º 2
0
 private void OpenWriteFileThread()
 {
     if (TxtFileObject == null)
     {
         TxtFileObject = new TxtFile(WriteFileName.Text);
         TxtFileObject.OpenTxtFile();
         myListBox("Correct : File " + WriteFileName.Text + " is opened now!!", ListMsg);
     }
     else
     {
         myListBox("Error : Don't open file " + WriteFileName.Text + " again!!", ListMsg);
     }
 }