コード例 #1
0
        // When showing the edit device-type window, set the title, make all TextBlocks black and set the selected devicetype
        private void OnDeviceTypeReceived(DeviceType deviceType)
        {
            Title = "Device-type bewerken";

            MarkTextBlocksBlack();

            SelectedDeviceType         = deviceType;
            SelectedDeviceTypeCopy     = SelectedDeviceType.Copy(); // Creates a deep copy in case the user wants to cancel the change
            DevicesOfCurrentDeviceType = deviceDataService.GetDevicesOfDeviceType(SelectedDeviceType.Id).ToObservableCollection();
        }