private static bool AssignSharedComponents(DataDictionaryObject dictObject, string argument, string value) { if (argument.Equals(DataDictionaryElements.DICT_LABEL, StringComparison.InvariantCultureIgnoreCase)) { ParseLabel(dictObject, value); return(true); } else if (argument.Equals(DataDictionaryElements.DICT_NAME, StringComparison.InvariantCultureIgnoreCase)) { dictObject.Name = value.ToUpper(); return(true); } else if (argument.Equals(DataDictionaryElements.DICT_NOTE, StringComparison.InvariantCultureIgnoreCase)) { dictObject.Note = AppendNote(dictObject.Note, value); return(true); } return(false); }
private void PrefixDictObjectName(DataDictionary dict, string prefix, DataDictionaryObject ddo) { string oldName = ddo.Name; string newName = prefix + ddo.Name; CheckIfValidNewName(dict, newName); // change the name ddo.Name = newName; }
private DataDictionary GetDataDictionaryFromSymbol(DataDictionaryObject symbol) { return symbol is DataDictionary ? (DataDictionary)symbol : symbol is Level ? ( (Level)symbol ).ParentDictionary : symbol is Record ? ( (Record)symbol ).ParentDictionary : symbol is Item ? ( (Item)symbol ).ParentDictionary : symbol is ValueSet ? ( (ValueSet)symbol ).ParentDictionary : null; }
private static bool AssignSharedComponents(DataDictionaryObject dictObject,string argument,string value) { if( argument.Equals(DataDictionaryElements.DICT_LABEL,StringComparison.InvariantCultureIgnoreCase) ) { ParseLabel(dictObject,value); return true; } else if( argument.Equals(DataDictionaryElements.DICT_NAME,StringComparison.InvariantCultureIgnoreCase) ) { dictObject.Name = value.ToUpper(); return true; } else if( argument.Equals(DataDictionaryElements.DICT_NOTE,StringComparison.InvariantCultureIgnoreCase) ) { dictObject.Note = AppendNote(dictObject.Note,value); return true; } return false; }
private void SaveSharedComponents(DataDictionaryObject dictObject) { SaveOption(DataDictionaryElements.DICT_LABEL,GetSaveLabelText(dictObject)); SaveOption(DataDictionaryElements.DICT_NAME,dictObject.Name); SaveNote(dictObject.Note); }
private void SaveSharedComponents(DataDictionaryObject dictObject) { SaveOption(DataDictionaryElements.DICT_LABEL, GetSaveLabelText(dictObject)); SaveOption(DataDictionaryElements.DICT_NAME, dictObject.Name); SaveNote(dictObject.Note); }