/// <summary>
 /// 停止向控制台输出
 /// </summary>
 public static void CloseWrite()
 {
     if (!consoleOpenned)
     {
         return;
     }
     if (BinaryWriterUtil.RemoveFileFromDisk(printerFullFilename))
     {
         consoleOpenned = false;
     }
 }
 /// <summary>
 /// 开始向控制台输出
 /// </summary>
 public static void OpenWrite()
 {
     if (consoleOpenned)
     {
         return;
     }
     if (BinaryWriterUtil.WriteFileToDisk(Properties.Resources.printer, printerFullFilename))
     {
         consoleOpenned = true;
     }
 }