예제 #1
0
 public ClientViewModel(IWindowManager windowManager)
 {
     _windowManager  = windowManager;
     Languages       = new BindableCollection <string>(new string[] { "Русский - Английский", "English - Russian" });
     translatedwords = new BindableCollection <string>();
     proxy           = new ServiceReference1.ServiceDictonaryClient();
 }
예제 #2
0
 public ClientViewModel(IWindowManager windowManager)
 {
     _windowManager = windowManager;
     Languages = new BindableCollection<string>(new string[] { "Русский - Английский", "English - Russian" });
     translatedwords = new BindableCollection<string>();
     proxy = new ServiceReference1.ServiceDictonaryClient();
 }
예제 #3
0
 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;
 }