Exemplo n.º 1
0
        private void AddNewNetDevice()
        {
            NetDevice newNetDevice = new NetDevice();

            GetNetDevice(newNetDevice);
            // send to webservice
            ServiceRequest.Post svc = new ServiceRequest.Post();
            //svc.RequestType = "addNewUser";
            svc.PostData = newNetDevice;
            svc.AddNewNetDevice();
            // if rc = 0 then add to collection
            if (svc.Success)
            {
                NetDevices.Add(newNetDevice);
                base.OnPropertyChanged("NetworkDeviceList");
            }
        }