Example #1
0
        private new void ControlsToData()
        {
            if (itemDescription == null)
            {
                itemDescription = new Controller();
            }
            base.ControlsToData();
            var controller = itemDescription as Controller;

            if (controller != null)
            {
                controller.PhysicalMemory    = edtDatumPhysicalMemory.DoubleValue;
                controller.InstalledSoftware = InstalledSoftware.ItemsDescriptions;
                controller.Storage           = ControllerDrive.ControllerDrive;
                controller.Processor         = controllerProcessorControl1.ControllerProcessor;
                controller.Peripherals       = Peripherals.ItemsDescriptions;
                controller.OperatingSystems  = controllerOperatingSystemListControl1.OperatingSystems;
                List <List <string> > table = VideoCapabilities.GetTable();
                controller.VideoCapabilities = new List <string>();
                foreach (var tableRow in table)
                {
                    if (tableRow.Count > 0)
                    {
                        controller.VideoCapabilities.Add(tableRow[0]);
                    }
                }
                List <List <string> > table2 = AudioCapabilities1.GetTable();
                controller.AudioCapabilities = new List <string>();
                foreach (var tableRow in table2)
                {
                    if (tableRow.Count > 0)
                    {
                        controller.AudioCapabilities.Add(tableRow[0]);
                    }
                }
            }
        }