// When showing the add new problem window, set the title, make all TextBlocks black and make sure all fields are empty
        private void OnNewProblemWindow(OpenDetailViewMessage message)
        {
            Title = "Storing registreren";

            MarkTextBlocksBlack();

            ComboBoxPriority            = problemDataService.FillCombobox(ComboboxType.Department);
            ComboBoxSeverity            = problemDataService.FillCombobox(ComboboxType.DeviceType);
            ComboBoxStatus              = problemDataService.FillCombobox(ComboboxType.Department);
            ComboBoxHandledByEmployeeId = problemDataService.FillCombobox(ComboboxType.DeviceType);

            DevicesOfCurrentProblem = new ObservableCollection <Device>();
            AllDevices = deviceDataService.GetAllDevices().ToObservableCollection();

            //currentEmployeeID = currentEmployee.IDOfCurrentEmployee();
            //txtToegevoegdDoor.Text = currentEmployee.FirstNameOfCurrentEmployee(); // tijdelijk

            SelectedProblemCopy = new Problem()
            {
                Description         = "",
                Priority            = 0,
                Severity            = 0,
                Status              = "Open",
                HandledByEmployeeId = 0
            };
        }
Example #2
0
 public void Handle(OpenDetailViewMessage message)
 {
     OpenDetailView();
     _eventAggregator.PublishOnUIThread(new SelectedPodcastMessage()
     {
         Podcast = message.SelectedPodcast
     });
 }
        // When showing the add new device-type window, set the title, make all TextBlocks black and make sure all fields are empty
        private void OnNewDeviceTypeWindow(OpenDetailViewMessage message)
        {
            Title = "Device-type registreren";

            MarkTextBlocksBlack();

            SelectedDeviceTypeCopy = new DeviceType()
            {
                Name        = "",
                Description = ""
            };
        }
        // When showing the add new device-type window, set the title, make all TextBlocks black and make sure all fields are empty
        private void OnNewDeviceWindow(OpenDetailViewMessage message)
        {
            Title = "Device registreren";

            MarkTextBlocksBlack();

            ComboBoxDeviceTypes = problemDataService.FillCombobox(ComboboxType.DeviceType);
            ComboBoxDepartments = problemDataService.FillCombobox(ComboboxType.Department);

            SelectedDeviceCopy = new Device()
            {
                Name           = "",
                DeviceTypeName = "",
                Department     = "",
                SerialNumber   = "",
                Comments       = ""
            };
        }