コード例 #1
0
        public void Copy(FunctionXML assign)
        {
            mFunctionName = assign.mFunctionName;

            mKeys.Clear();
            foreach (string key in assign.mKeys)
            {
                string newKey = key;
                mKeys.Add(newKey);
            }
        }
コード例 #2
0
        // 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);
            }
        }