C2026-041-invisible-position-changes-as-differences
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
using DevComponents.DotNetBar;
|
||||
using Org.BouncyCastle.Utilities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Text;
|
||||
|
||||
namespace Volian.Base.Library
|
||||
{
|
||||
@@ -148,16 +151,86 @@ namespace Volian.Base.Library
|
||||
public static class BaselineMetaFile
|
||||
{
|
||||
private static DebugPrint _MyDebugPrint = new DebugPrint();
|
||||
public static void Open(string fileName)
|
||||
{ _MyDebugPrint.Open(fileName); }
|
||||
private static DebugPrint _MyDebugPrint_Truncated = new DebugPrint();
|
||||
public static void Open(string fileName)
|
||||
{ _MyDebugPrint.Open(fileName);
|
||||
_MyDebugPrint_Truncated.Open(fileName.Replace(".txt", "_Truncated.txt"));
|
||||
}
|
||||
public static void Close()
|
||||
{ _MyDebugPrint.Close(); }
|
||||
{ _MyDebugPrint.Close();
|
||||
_MyDebugPrint_Truncated.Close(); }
|
||||
public static void Write(string format, params object[] args)
|
||||
{ _MyDebugPrint.Write(format, args); }
|
||||
{
|
||||
if (args.Length > 8)
|
||||
{
|
||||
if (args[args.GetUpperBound(0)] == "truncate_false" || args[args.GetUpperBound(0)] == "truncate_true") // if there is a 9th element test the value for truncated data.
|
||||
{
|
||||
int myvalue = args.GetUpperBound(0);
|
||||
// test and save untruncated and truncated version of the data.
|
||||
if (args[args.GetUpperBound(0)] == "truncate_false")// when untruncated data is being saved
|
||||
{
|
||||
_MyDebugPrint.Write(format, args);
|
||||
}
|
||||
else // when truncated data is being saved
|
||||
{
|
||||
_MyDebugPrint_Truncated.Write(format, args);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_MyDebugPrint_Truncated.Write(format, args);
|
||||
_MyDebugPrint.Write(format, args); // there is a 9th element, but not for truncated data
|
||||
|
||||
}
|
||||
}
|
||||
else // test if asgs does not have a 9th element save data (no truncate data is available)
|
||||
{
|
||||
_MyDebugPrint_Truncated.Write(format, args);
|
||||
_MyDebugPrint.Write(format, args);
|
||||
|
||||
}
|
||||
}
|
||||
public static void WriteLine(string format, params object[] args)
|
||||
{ _MyDebugPrint.WriteLine(format, args); }
|
||||
public static void Show()
|
||||
{ _MyDebugPrint.Show(); }
|
||||
{
|
||||
if(args.Length > 8)
|
||||
{
|
||||
if (args[8] == "truncate_false" || args[8] == "truncate_true") // if there is a 9th element test the value for truncated data.
|
||||
{
|
||||
// test and save untruncated and truncated version of the data.
|
||||
if (args[8] == "truncate_false")// when untruncated data is being saved
|
||||
{
|
||||
_MyDebugPrint.WriteLine(format, args);
|
||||
}
|
||||
else // when truncated data is being saved
|
||||
{
|
||||
_MyDebugPrint_Truncated.WriteLine(format, args);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_MyDebugPrint.WriteLine(format, args); // there is a 9th element, but not for truncated data
|
||||
_MyDebugPrint_Truncated.WriteLine(format, args);
|
||||
}
|
||||
}
|
||||
else // test if asgs does not have a 9th element save data (no truncate data is available)
|
||||
{
|
||||
_MyDebugPrint.WriteLine(format, args);
|
||||
_MyDebugPrint_Truncated.WriteLine(format, args);
|
||||
}
|
||||
|
||||
}
|
||||
public static void TruncateWriteLine(string format, params object[] args)
|
||||
{
|
||||
_MyDebugPrint_Truncated.WriteLine(format, args);
|
||||
}
|
||||
public static void TruncateWrite(string format, params object[] args)
|
||||
{
|
||||
_MyDebugPrint_Truncated.Write(format, args);
|
||||
}
|
||||
public static void Show()
|
||||
{ _MyDebugPrint.Show();
|
||||
_MyDebugPrint_Truncated.Show();
|
||||
}
|
||||
public static bool IsOpen
|
||||
{ get { return _MyDebugPrint.IsOpen; } }
|
||||
private static bool _IncludeWordSecText = true;
|
||||
|
||||
Reference in New Issue
Block a user