private void ListBox_ChosenProcedures_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (ChosenProceduresSelected != null) { EditProcedure = new ProcedureType(ChosenProceduresSelected.Id, ChosenProceduresSelected.Name, ProcedureType.GenerateRoles(ChosenProceduresSelected)); } }
private void ListBox_AllProcedures_GotFocus(object sender, RoutedEventArgs e) { if (AllProceduresSelected != null) { EditProcedure = new ProcedureType(AllProceduresSelected.Id, AllProceduresSelected.Name, ProcedureType.GenerateRoles(AllProceduresSelected)); } }