/// <summary> /// Adds new language to viewmodel and model. /// </summary> /// <param name="languageViewModel"></param> public void AddNewLanguage(LingvaViewModel languageViewModel) { L.Logger.Debug("Adding new language."); // Use copy constructor. Lingva lang = new Lingva(languageViewModel.CurrentLanguage); model.AddNewLanguage(lang); }