private void AssignWork_Click(object sender, RoutedEventArgs e) { Job actualJob = (Job)Enum.Parse(typeof(Job), workerBeeJob.SelectedIndex.ToString()); shiftsReports.Text += workerBeeJob.SelectionBoxItem.ToString() + statisticViewModel.AssignWork(actualJob, shifts.Value); }