protected override string MakeEventCommandMoveParamSentence( EventCommandSentenceResolver resolver, EventCommandSentenceType type, EventCommandSentenceResolveDesc desc) { if (SavedPositionId.IsVariableAddressSimpleCheck()) { return(MakeEventCommandMoveParamSentence_TargetVariableAddress( resolver, type, desc)); } return(MakeEventCommandMoveParamSentence_TargetNotVariableAddress(resolver)); }
private string MakeEventCommandMoveParamSentence_TargetNotVariableAddress( EventCommandSentenceResolver resolver) { var idStr = SavedPositionId >= 100 ? SavedPositionId.ToString() : SavedPositionId.ToString().PadLeft(2, '0'); var nameStr = resolver.GetDatabaseDataName( DBKind.System, MapPositionSettingTypeId, SavedPositionId).Item2; return(string.Format(EventCommandSentenceFormat_NotVariable, idStr, nameStr)); }