SIL.Cog.Application.ViewModels.MultipleWordAlignmentViewModel.HandleSwitchView C# (CSharp) Method

HandleSwitchView() private method

private HandleSwitchView ( SIL.Cog.Application.ViewModels.SwitchViewMessage msg ) : void
msg SIL.Cog.Application.ViewModels.SwitchViewMessage
return void
        private void HandleSwitchView(SwitchViewMessage msg)
        {
            if (msg.ViewModelType == GetType())
            {
                _busyService.ShowBusyIndicatorUntilFinishDrawing();

                var meaning = (Meaning) msg.DomainModels[0];
                SelectedMeaning = _meanings[meaning];
                if (msg.DomainModels.Count > 1)
                {
                    var wp = (WordPair) msg.DomainModels[1];
                    _selectedWords.ReplaceAll(new[] { _words.First(w => w.DomainWord == wp.Word1), _words.First(w => w.DomainWord == wp.Word2)});
                }
            }
        }