public VoiceActorAssignmentViewModel(Project project) { m_project = project; CharacterGroupAttribute <CharacterGender> .GetUiStringForValue = GetUiStringForCharacterGender; CharacterGroupAttribute <CharacterAge> .GetUiStringForValue = GetUiStringForCharacterAge; #if DEBUG var p = new Proximity(m_project.IncludedBooks, m_project.DramatizationPreferences); foreach (var group in CharacterGroups.OrderBy(g => g.GroupIdForUiDisplay)) { Debug.WriteLine(group.GroupIdForUiDisplay + ": " + p.CalculateMinimumProximity(group.CharacterIds)); } #endif }
public VoiceActorAssignmentViewModel(Project project) { m_project = project; ProjectProximity = new Proximity(m_project, false); CharacterGroupAttribute <CharacterGender> .GetUiStringForValue = GetUiStringForCharacterGender; CharacterGroupAttribute <CharacterAge> .GetUiStringForValue = GetUiStringForCharacterAge; LogAndOutputToDebugConsole("Group".PadRight(7) + ": " + MinimumProximity.ReportHeader + Environment.NewLine + "-".PadRight(100, '-')); foreach (var group in CharacterGroups.OrderBy(g => g.GroupIdForUiDisplay)) { LogAndOutputToDebugConsole(group.GroupIdForUiDisplay.PadRight(7) + ": " + ProjectProximity.CalculateMinimumProximity(group.CharacterIds)); } }
public VoiceActorAssignmentViewModel(Project project, Dictionary <string, int> keyStrokesByCharacterId = null) { m_project = project; m_keyStrokesByCharacterId = keyStrokesByCharacterId ?? m_project.GetKeyStrokesByCharacterId(); CharacterGroupAttribute <CharacterGender> .GetUiStringForValue = GetUiStringForCharacterGender; CharacterGroupAttribute <CharacterAge> .GetUiStringForValue = GetUiStringForCharacterAge; m_project.CharacterGroupList.PopulateEstimatedHours(m_keyStrokesByCharacterId); #if DEBUG var p = new Proximity(m_project); foreach (var group in CharacterGroups.OrderBy(g => g.GroupNumber)) { Debug.WriteLine(group.GroupNumber + ": " + p.CalculateMinimumProximity(group.CharacterIds)); } #endif }