Exemple #1
0
 private new void DataToControls()
 {
     if (itemDescription != null)
     {
         var controller = itemDescription as Controller;
         base.DataToControls();
         if (controller != null)
         {
             edtDatumPhysicalMemory.DoubleValue = controller.PhysicalMemory;
             controllerOperatingSystemListControl1.OperatingSystems = controller.OperatingSystems;
             controllerProcessorControl1.ControllerProcessor        = controller.Processor;
             ControllerDrive.ControllerDrive     = controller.Storage;
             InstalledSoftware.ItemsDescriptions = controller.InstalledSoftware;
             Peripherals.ItemsDescriptions       = controller.Peripherals;
             if (controller.VideoCapabilities != null)
             {
                 foreach (string video in controller.VideoCapabilities)
                 {
                     DataGridViewRow row = VideoCapabilities.AddRow();
                     VideoCapabilities.AddColumnData(row, "capability", video);
                 }
             }
             if (controller.AudioCapabilities != null)
             {
                 foreach (string audio in controller.AudioCapabilities)
                 {
                     DataGridViewRow row = AudioCapabilities1.AddRow();
                     AudioCapabilities1.AddColumnData(row, "capability", audio);
                 }
             }
         }
     }
 }