public override void FixUIDReferencesAfterPaste(Dictionary <string, string> oldGUIDToNewGUIDMap) { string oldUID = GetSubDialogUID(); string newUID; newUID = CommonShadow.GetNewUIDAfterPaste(oldUID, oldGUIDToNewGUIDMap, true); if (newUID.Length == 0) { Common.ErrorMessage("Call SubDialog refers to a SubDialog which can't be found, clearing"); newUID = ""; } SetSubDialogUID(newUID); }
public override void FixUIDReferencesAfterPaste(Dictionary <string, string> oldGUIDToNewGUIDMap) { Table table = GetTransitions(); for (int row = table.GetNumRows() - 1; row >= 0; row--) { string oldUID = table.GetData(row, (int)TableColumns.Transitions.Goto); string newUID = CommonShadow.GetNewUIDAfterPaste(oldUID, oldGUIDToNewGUIDMap, false); if (newUID == null) { table.DeleteRow(row); } else if (oldUID != newUID) { table.SetData(row, (int)TableColumns.Transitions.Goto, newUID); } } SetTransitionsWithoutRemovingOutputsForDeletedTransitions(table); }
public override void FixUIDReferencesAfterPaste(Dictionary <string, string> oldGUIDToNewGUIDMap) { Table table = GetCommandTransitions(); for (int row = table.GetNumRows() - 1; row >= 0; row--) { string oldUID = table.GetData(row, (int)TableColumns.CommandTransitions.Goto); string newUID = CommonShadow.GetNewUIDAfterPaste(oldUID, oldGUIDToNewGUIDMap, false); if (newUID == null) { Common.ErrorMessage("Transition in Start refers to state which can't be found, changing to hang up"); table.SetData(row, (int)TableColumns.CommandTransitions.Goto, Strings.HangUpKeyword); } else if (oldUID != newUID) { table.SetData(row, (int)TableColumns.CommandTransitions.Goto, newUID); } } SetCommandTransitions(table); table = GetMaxHandling(); for (int row = table.GetNumRows() - 1; row >= 0; row--) { string oldUID = table.GetData(row, (int)TableColumns.MaxHandling.Goto); if (oldUID == null || oldUID.Length == 0) { continue; } string newUID = CommonShadow.GetNewUIDAfterPaste(oldUID, oldGUIDToNewGUIDMap, true); if (newUID == null) { Common.ErrorMessage("MaxHandler for Start refers to state which can't be found, changing to hang up"); table.SetData(row, (int)TableColumns.MaxHandling.Goto, Strings.HangUpKeyword); } else if (oldUID != newUID) { table.SetData(row, (int)TableColumns.MaxHandling.Goto, newUID); } } SetMaxHandling(table); }