예제 #1
0
        private void ShowVoiceActorList(bool keepSelection)
        {
            var actorInfoViewModel = new VoiceActorInformationViewModel(m_viewModel.Project);

            using (var actorDlg = new VoiceActorInformationDlg(actorInfoViewModel, false, false, !keepSelection))
            {
                if (actorDlg.ShowDialog(this) == DialogResult.Cancel)
                {
                    keepSelection = true;                     // Even though Cancel doesn't actually discard changes, it should at least reflect the user's desire not to have any changes result in a change to the cast size choice
                }
                m_viewModel.SetVoiceActorListValues(new CastSizeRowValues(m_viewModel.Project.VoiceActorList), keepSelection);
            }
            m_castSizePlanningOptions.Refresh();
            UpdateButtonState();
            ShowOrHideNarratorCountWarning();
        }