This commit is contained in:
2011-02-08 11:25:03 +00:00
parent f524056e6c
commit 3a46cb8580
6 changed files with 846 additions and 778 deletions

View File

@@ -42,14 +42,13 @@ namespace VEPROMS
this.Text = string.Format("{0} Properties", ii.DisplayText);
ppSectTitleStpRTB.FieldToEdit = E_FieldToEdit.Text;
ppSectTitleStpRTB.BorderStyle = BorderStyle.Fixed3D;
ppSectTitleStpRTB.ViewRTB = false;
ppSectTitleStpRTB.MyItemInfo = ii;
ppSectTitleStpRTB.RefreshDisplay(true);
ppSectNumberStpRTB.FieldToEdit = E_FieldToEdit.Number;
ppSectNumberStpRTB.BorderStyle = BorderStyle.Fixed3D;
ppSectNumberStpRTB.ViewRTB = false;
ppSectNumberStpRTB.MyItemInfo = ii;
ppSectNumberStpRTB.RefreshDisplay(true);
_MyStepTabRibbon = new StepTabRibbon();
//_MyStepTabRibbon.Dock = System.Windows.Forms.DockStyle.Top;
//_MyStepTabRibbon.Location = new System.Drawing.Point(0, 0);
@@ -85,12 +84,24 @@ namespace VEPROMS
Document.Delete(_DocumentToDelete.DocID);
_DocumentToDelete = null;
}
ppSectNumberStpRTB.SaveText();
ppSectTitleStpRTB.SaveText();
SaveText(ppSectNumberStpRTB);
SaveText(ppSectTitleStpRTB);
mySection.Dispose();
this.Close();
}
public void SaveText(StepRTB myStepRTB)
{
if (myStepRTB.ReadOnly) return;
if (!myStepRTB.ActiveMode) return;
if (!myStepRTB.IsDirty && myStepRTB.Text.Contains("(Resolved Transition Text)") == false) return;
bool success = myStepRTB.OrigDisplayText.Save((RichTextBox)myStepRTB);
if (success)
{
myStepRTB.FindAllLinks();
myStepRTB.OrigRTF = myStepRTB.Rtf;
myStepRTB.ClearUndo();
}
}
private static void FinishSectionSave(Section section)
{
ItemInfo sectinfo = ItemInfo.Get(section.ItemID);