예제 #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);
     }
 }