All pastes #812984 Raw Edit

Mine

public text v1 · immutable
·published 2007-12-12 04:23 UTC
rendered paste body

        //In the future, this will prepopulate column names with a list of PLC variables that can be bound to
        public void LoadFromXml(string xmlFieldList)
        {
            //TODO: replace with actual field names.
            //some test PLC variables
            List<PlcVariable> keyValues = new List<PlcVariable>();
            
            PlcVariable variable = new PlcVariable("UINT", 0);
            //variable.Name = "DriveMotor1" @Address 0
            keyValues.Add(variable);
            

            variable = new PlcVariable("UINT", 1);
            //variable.Name = "DriveMotor2"; @Address 1
            keyValues.Add(variable);

            //Add keyvalue variables to this list.
            this.Add(keyValues);
        }