public void Copy(FunctionXML assign) { mFunctionName = assign.mFunctionName; mKeys.Clear(); foreach (string key in assign.mKeys) { string newKey = key; mKeys.Add(newKey); } }
// Copy data public void Copy(ConfigXML assign) { mConfigName = assign.mConfigName; mID = assign.mID; mFunctions.Clear(); foreach (FunctionXML function in assign.mFunctions) { FunctionXML newFunction = new FunctionXML(); newFunction.Copy(function); mFunctions.Add(newFunction); } mNameModified = assign.mNameModified; mModifiedControls.Clear(); foreach (string control in assign.mModifiedControls) { string newControl = control; mModifiedControls.Add(newControl); } }