Exemplo n.º 1
0
        // Copy data
        public void Copy(ControllerConfigsXML assign)
        {
            version      = assign.version;
            mMaxConfigID = assign.mMaxConfigID;

            foreach (ConfigXML config in assign.mConfigs)
            {
                ConfigXML newConfig = new ConfigXML();
                newConfig.Copy(config);
                mConfigs.Add(newConfig);
            }

            mFunctionStrings.Copy(assign.mFunctionStrings);
        }
Exemplo n.º 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);
            }
        }