Пример #1
0
        private void Execute_Add(object obj)
        {
            _clientRequests = new ClientRequests();
            MonitoringDevice newDevice = new MonitoringDevice();

            newDevice.DeviceName                  = ProductName;
            newDevice.Ecg                         = EcgSelected;
            newDevice.Spo2                        = Spo2Selected;
            newDevice.Respiration                 = RespSelected;
            newDevice.Hr                          = HrSelected;
            newDevice.PhysiologicalAlarming       = PhysiologicalAlarmingSelected;
            newDevice.BloodPressure               = BloodPressureSelected;
            newDevice.BatteryLife                 = BatteryLife;
            newDevice.SupportedScreenOrientations = ScreenOrientationTypeSelected;
            newDevice.Size                        = SizeSelected;
            newDevice.MobileOrStatic              = MobileOrStaticSelected;
            newDevice.AntiMicrobialGlass          = AntiMicrobalGlassSelected;
            newDevice.PatientLocation             = PatientLocationSelected;
            _clientRequests.ProductPostRequest("api/productcategory/PostDevice", newDevice);
            MessageBox.Show(newDevice.ToString());
            //throw new NotImplementedException();
        }