public ClientViewModel(IWindowManager windowManager) { _windowManager = windowManager; Languages = new BindableCollection <string>(new string[] { "Русский - Английский", "English - Russian" }); translatedwords = new BindableCollection <string>(); proxy = new ServiceReference1.ServiceDictonaryClient(); }
public ClientViewModel(IWindowManager windowManager) { _windowManager = windowManager; Languages = new BindableCollection<string>(new string[] { "Русский - Английский", "English - Russian" }); translatedwords = new BindableCollection<string>(); proxy = new ServiceReference1.ServiceDictonaryClient(); }
public EditViewModel(Client.ServiceReference1.ServiceDictonaryClient proxi, int indexLanguage, string inputText, BindableCollection <string> words, IWindowManager windowManager) { this.proxy = proxi; this.InputText = inputText; this.indexLanguage = indexLanguage; Languages = new BindableCollection <string>(new string[] { "Русский - Английский", "English - Russian" }); SelectedLanguage = Languages.ElementAt(indexLanguage); wordsTranslate = new BindableCollection <string>(); Words = words; _windowManager = windowManager; }