示例#1
0
文件: Form1.cs 项目: s880367/kuka
 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);
     }
 }
示例#2
0
文件: Form1.cs 项目: s880367/kuka
 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);
     }
 }