- Added code to handle missing A0 Section Transitions

- Added code to handle "AND Range" transitions
- Fixed code to replace transition tokens.  It was removing the last character.
Added Background Saving
This commit is contained in:
Rich 2010-09-06 19:31:52 +00:00
parent 773b7c266b
commit 90a7a6dbc0
2 changed files with 17 additions and 1 deletions

View File

@ -100,6 +100,10 @@ namespace DataLoader
}
else
{
// if the type == 0, i.e. procedure with optional step number and the procedure does not include
// the default A0 section, point to the procedure:
if (itype == 0 && thekey.EndsWith("A0")) // may have to process these at end?
Console.WriteLine("here");
if (itype > 6) itype--; // Corrected to match transformat table (16-bit skips type 6 because it's an outside transition)
if (dicTrans_ItemDone.ContainsKey(thekey))
{
@ -131,6 +135,14 @@ namespace DataLoader
if (dr2 != null)
{
string thekey2 = dr2["TONUMBER"].ToString() + "|" + dr2["TOSEQUENCE"].ToString();
if (itype == 2)
{
if (dr["TOSEQUENCE"].ToString().Length > 3 &&
dr["TOSEQUENCE"].ToString().Substring(0, 2) == dr2["TOSEQUENCE"].ToString().Substring(0, 2))
thekey2 = thekey;
else
thekey2 = dr2["TONUMBER"].ToString() + "|" + dr2["TOSEQUENCE"].ToString().Substring(0, 3);
}
if (dicTrans_ItemDone.ContainsKey(thekey2))
{
toItem2 = dicTrans_ItemDone[thekey2];
@ -260,7 +272,7 @@ namespace DataLoader
else
tok = textm.IndexOfAny(chrtrn, beg);
}
if (beg < textm.Length - 1)
if (beg < textm.Length)
trtxt.Append(textm.Substring(beg, textm.Length - beg));
if (dt.Rows.Count > instance + 1)
{

View File

@ -140,6 +140,10 @@ namespace LBWordLibrary
get { return (LBWdWindowState)GetProperty("WindowState"); }
set { SetProperty("WindowState", value); }
}
public int BackgroundSavingStatus
{
get { return (GetProperty("BackgroundSavingStatus") as int? ?? 0); }
}
public void Quit()
{
InvokeMethod("Quit", Missing.Value, Missing.Value, Missing.Value);