BGE: Save Change id on grid edit
BGE: Save Change id on step edit BGE: Added user interface for modifying current change id BGE: Added menu item for removing change ids (no supporting code yet – the actual code to remove ids needs to be developed) BGE: If format uses ‘ChangeIds’, then use the data from the changed step config for printing the change bar data.
This commit is contained in:
@@ -663,6 +663,7 @@ namespace Volian.Controls.Library
|
||||
MyStepRTB.SelectedText = "<BackSlash>";
|
||||
}
|
||||
SaveText();
|
||||
|
||||
MyStepRTB.Visible = true;
|
||||
SaveConfig(); // This may be redundant
|
||||
}
|
||||
@@ -674,6 +675,14 @@ namespace Volian.Controls.Library
|
||||
bool success = MyStepRTB.OrigDisplayText.Save((RichTextBox)MyStepRTB);
|
||||
if (success)
|
||||
{
|
||||
// if the plant has the change id option, the change id was entered when the program started.
|
||||
// this should be saved for every piece of edited data. Note that the set of config
|
||||
// item Step_MultipleChangeID has the save built in to it.
|
||||
if (MyStepRTB.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChgBarMessageFromEdit)
|
||||
{
|
||||
StepConfig sc = MyStepRTB.MyItemInfo.MyConfig as StepConfig;
|
||||
sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId;
|
||||
}
|
||||
MyStepRTB.FindAllLinks();
|
||||
MyStepRTB.OrigRTF = MyStepRTB.Rtf;
|
||||
MyStepRTB.ClearUndo();
|
||||
|
Reference in New Issue
Block a user