public static void ConfigureSelectedLanguage(SelectedLanguage selectedLanguage, TextBox firstLanguageWordTextBox, TextBox secondLanguageWordTextBox, Button validateWordButton, Button nextWordButton) { switch (selectedLanguage) { case SelectedLanguage.Lithuanian: firstLanguageWordTextBox.ReadOnly = false; secondLanguageWordTextBox.ReadOnly = true; firstLanguageWordTextBox.Select(); break; case SelectedLanguage.English: firstLanguageWordTextBox.ReadOnly = true; secondLanguageWordTextBox.ReadOnly = false; secondLanguageWordTextBox.Select(); break; default: firstLanguageWordTextBox.ReadOnly = false; secondLanguageWordTextBox.ReadOnly = true; firstLanguageWordTextBox.Select(); break; } RepositionConfirmAndNextWordButtons(validateWordButton, nextWordButton, firstLanguageWordTextBox, secondLanguageWordTextBox); }
public static void HandleNextWordButtonClickedEvent( Button iDontKnowTheWordButton, TextBox firstLanguageWordTextBox, TextBox secondLanguageWordTextBox, SelectedLanguage selectedLanguage) { iDontKnowTheWordButton.Visible = true; switch (selectedLanguage) { case SelectedLanguage.Lithuanian: firstLanguageWordTextBox.Visible = false; break; case SelectedLanguage.English: secondLanguageWordTextBox.Visible = false; break; case SelectedLanguage.Mixed: bool currentEnLabelVisibleState = secondLanguageWordTextBox.Visible; bool currentLtLabelVisibleState = firstLanguageWordTextBox.Visible; secondLanguageWordTextBox.Visible = !currentEnLabelVisibleState; firstLanguageWordTextBox.Visible = !currentLtLabelVisibleState; break; default: throw new ArgumentOutOfRangeException(); } }
public static void ChangeToEnglishInput() { mainWindow.SearchBar.Text = ""; selectedLanguage = SelectedLanguage.English; mainWindow.SearchBarPlaceholder.Text = "Enter your english word, then press enter"; showLanguageResult = ShowEnglishResult; }
public static void ChangeToChineseInput() { mainWindow.SearchBar.Text = ""; selectedLanguage = SelectedLanguage.Chinese; mainWindow.SearchBarPlaceholder.Text = "Enter your characters/pinyin, then press enter"; showLanguageResult = ShowChineseResult; }
protected BaseTestResultsForm(SelectedLanguage selectedLanguage, TestType testType, Stopwatch elapsedTimeStopWatch) { _selectedLanguage = selectedLanguage; _testType = testType; _elapsedTimeStopWatch = elapsedTimeStopWatch; InitializeComponent(); }
public UnknownWordsVerbalTestForm(SelectedLanguage selectedLanguage, WordPair[] unknownWords) { _unknownWords = unknownWords; _startingCountOfUnknownWords = _unknownWords.Length; _selectedLanguage = selectedLanguage; InitializeComponent(); }
public Task <GrammarCheckResult> GetCorrections(string text) { string language; if (SelectedLanguage == SupportedLanguages.Auto) { var languageInfo = _languageService.IdentifyLanguage(text); language = languageInfo.TwoLetterISOLanguageName; } else { language = LanguageUtils.GetLanguageCode(SelectedLanguage.GetDescription()); } var corrections = new List <GrammarCorrection>(); var words = text.Split(" "); var dictionary = GetDictionaryBasedOnWords(words, language); foreach (var item in words) { if (string.IsNullOrWhiteSpace(item) || !char.IsLetter(item[0])) { continue; } // Remove special characters var word = StringUtils.RemoveSpecialCharacters(item).ToLower(); if (string.IsNullOrWhiteSpace(word)) { continue; } var wordFound = dictionary.Contains(word); if (!wordFound) { var possibleCorrections = dictionary.Where(v => _stringDiffService.IsInComparableRange(v, word) && _stringDiffService.ComputeDistance(v, word) < Defaults.StringComparableRange); if (possibleCorrections.Any()) { var correction = new GrammarCorrection { WrongWord = item, PossibleReplacements = possibleCorrections, Message = GetCorrectionMessage(item, language) }; corrections.Add(correction); } } } return(Task.FromResult(new GrammarCheckResult(corrections))); }
public TestResultsForUnknownWordsForm( SelectedLanguage selectedLanguage, TestType testType, Stopwatch elapsedTimeStopWatch, int totalWordsCountInTest, List <WordPair> lernedWordsForStats) : base(selectedLanguage, testType, elapsedTimeStopWatch) { _totalWordsCountInTest = totalWordsCountInTest; _lernedWordsForStats = lernedWordsForStats; InitializeComponent(); }
public UnknownWordsGrammarTestForm(SelectedLanguage selectedLanguage, WordPair[] uknownWords) { _wordsService = new WordsService(); _unknownWords = uknownWords; _startingCountOfUnknownWords = _unknownWords.Length; _selectedLanguage = selectedLanguage; InitializeComponent(); }
public AllWordsGrammarTestForm(SelectedLanguage selectedLanguage, WordPair[] allWords) { _wordsService = new WordsService(); _allWords = allWords; _startingCountOfAllWords = _allWords.Length; _selectedLanguage = selectedLanguage; InitializeComponent(); }
private void Confirm(object language) { ChangeLanguageSettings(SelectedLanguage.ToString()); ChangeTranslatorLanguage((SupportedLanguage)SelectedLanguage); MenuLoad MenuLoad = new MenuLoad { DataContext = new MenuLoadViewModel() }; MenuLoad.Show(); WarningMessage(); CloseWindow(); }
private void SwitchLanguage() { string language = SelectedLanguage.Equals("DE") ? "EN" : "DE"; LanguageHelper.SetApplicationLanguage(language); SelectedLanguage = language; MessageBox.Show( AppResources.SwitchLanguage_Message, AppResources.SwitchLanguage_Caption, MessageBoxButton.OK, MessageBoxImage.Information); }
public TestResultsForAllWordsForm( SelectedLanguage selectedLanguage, TestType testType, Stopwatch elapsedTimeStopwatch, int totalWordsCountInTest, List <WordPair> learnedWordsForStats, List <WordPair> knownWords, List <WordPair> newUnknownWords, List <WordPair> unknownWords) : base(selectedLanguage, testType, elapsedTimeStopwatch) { _selectedLanguage = selectedLanguage; _testType = testType; _totalWordsCountInTest = totalWordsCountInTest; _learnedWordsForStats = learnedWordsForStats; _knownWords = knownWords; _newUnknownWords = newUnknownWords; _unknownWords = unknownWords; InitializeComponent(); }
private void CreateLanguageDropDownList() { var redirectQs = new QueryString(Page); redirectQs.RemoveParameter("lang"); var jsRedirect = redirectQs.AllUrl; if (redirectQs.Parameters.Count == 0) { jsRedirect += "?lang="; } else { jsRedirect += "&lang="; } jsRedirect = HttpUtility.HtmlEncode(jsRedirect); var sb = new StringBuilder(); sb.Append("<form method=\"get\" action=\"" + redirectQs.AllUrl + "\">"); foreach (string key in redirectQs.Parameters.Keys) { sb.Append("<input type=\"hidden\" name=\"" + key + "\" value=\"" + redirectQs[key] + "\" />"); } sb.Append("<select id=\"LanguageDropDownList\" name=\"lang\" onchange=\"javascript:location='" + jsRedirect + "' + this.options[this.selectedIndex].value\" >"); foreach (var language in AvailableLanguages) { var selected = string.Empty; if (language.ISOCode.ToLower() == SelectedLanguage.ToLower()) { selected = " selected=\"selected\" "; } sb.Append(string.Format("<option value=\"{0}\"" + selected + ">{1}</option>", language.ISOCode, language.Description)); } sb.Append("</select>"); sb.Append("<noscript><input type=\"submit\" value=\">\" /></noscript>"); sb.Append("</form>"); LanguageDropDownListLiteral.Text = sb.ToString(); }
//TODO: This method looks good, but I would say it should be in DAL. What do you think? public Task <int> InsertEntity(IEntity entity) { if (entity is Language) { return(Db.SqLiteAsyncConnection.InsertAsync(entity)); } else if (entity is Level) { return(SelectedLanguage.InsertLevel(entity as Level)); } else if (entity is Unit) { return(selectedLevel.InsertUnit(entity as Unit)); } else if (entity is Lesson) { return(SelectedUnit.InsertLesson(entity as Lesson)); } return(new Task <int>(() => 0)); }
public static void SetWordTextBoxVisibilityForSelectedLanguage(SelectedLanguage selectedLanguage, TextBox firstLanguageWordTextBox, TextBox secondLanguageWordTextBox) { switch (selectedLanguage) { case SelectedLanguage.Lithuanian: firstLanguageWordTextBox.Visible = false; secondLanguageWordTextBox.Visible = true; break; case SelectedLanguage.English: firstLanguageWordTextBox.Visible = true; secondLanguageWordTextBox.Visible = false; break; default: firstLanguageWordTextBox.Visible = false; secondLanguageWordTextBox.Visible = true; break; } }
public App() { try { InitializeComponent(); Constants.InitConstatns(); InitCryptMethod(); CrossMultilingual.Current.CurrentCultureInfo = new CultureInfo(SelectedLanguage.ToLower()); AppResources.Culture = CrossMultilingual.Current.CurrentCultureInfo; NavigationService.Configure("MainPage", typeof(MainPage)); NavigationService.Configure("DetailsPage", typeof(DetailsPage)); NavigationService.Configure("SettingsPage", typeof(SettingsPage)); NavigationService.Configure("LoginPage", typeof(LoginPage)); NavigationService.Configure("PasswordChangePage", typeof(PasswordChangePage)); NavigationService.Configure("PasswordSetPage", typeof(PasswordSetPage)); NavigationService.Configure("AboutPage", typeof(AboutPage)); NavigationService.Configure("HelpPage", typeof(HelpPage)); if (!IsUserLoggedIn) { if (!string.IsNullOrWhiteSpace(UserPassword)) { MainPage = NavigationService.SetRootPage("LoginPage"); } else { MainPage = NavigationService.SetRootPage("PasswordSetPage"); } } else { MainPage = NavigationService.SetRootPage("MainPage"); } } catch (Exception ex) { UserDialogsService.DisplayException(ex); } }
private void UnknownWordsListSelectionButton_Click(object sender, EventArgs e) { this.Hide(); SelectedLanguage selectedLanguage = GetSelectedLanguage(); if (ShouldCheckGrammarCheckBox.Checked) { var unknownWordsGrammarTestForm = new UnknownWordsGrammarTestForm(selectedLanguage, _unknownWords); unknownWordsGrammarTestForm.Closed += (s, args) => this.Close(); unknownWordsGrammarTestForm.Show(); } else { var unknownWordsVerbalTestForm = new UnknownWordsVerbalTestForm(selectedLanguage, _unknownWords); unknownWordsVerbalTestForm.Closed += (s, args) => this.Close(); unknownWordsVerbalTestForm.Show(); } }
private void AllWordListSelectionButton_Click(object sender, EventArgs e) { this.Hide(); if (CreatedAtLimitEnablingCheckBox.Checked) { var limitCriteria = new QueryCriteria { Limit = (int?)CreatedAtLimitNumericUpDown.Value }; _allWords = _wordsService.GetAllWords(limitCriteria); } SelectedLanguage selectedLanguage = GetSelectedLanguage(); if (ShouldCheckGrammarCheckBox.Checked) { var allWordsGrammarTestForm = new AllWordsGrammarTestForm(selectedLanguage, _allWords); allWordsGrammarTestForm.Closed += (s, args) => this.Close(); allWordsGrammarTestForm.Show(); } else { string passwordFormName = "Visų žodžių testo (žodžiu) apsauga:"; string expectedPassword = "******"; var allWordsVerbalTestForm = new AllWordsVerbalTestForm(selectedLanguage, _allWords); var passwordConfirmationForm = new PasswordConfirmationForm(passwordFormName, expectedPassword, allWordsVerbalTestForm); passwordConfirmationForm.Closed += (s, args) => this.Close(); passwordConfirmationForm.Show(); } }
private string SetVFLAddress(Screen screen, long channel) { if (screen.WorkingArea.Width <= 1250) { return("http://vflsrterminal.aitcloud.de/vflterminal/vleague_terminal.php?clientid=642&lang=" + SelectedLanguage.ToLowerInvariant() + "&resolution=1024&channel=" + channel); } else if (screen.WorkingArea.Width <= 1350) { return("http://vflsrterminal.aitcloud.de/vflterminal/vleague_terminal.php?clientid=642&lang=" + SelectedLanguage.ToLowerInvariant() + "&resolution=1280&channel=" + channel); } else if (screen.WorkingArea.Width <= 1900) { return("http://vflsrterminal.aitcloud.de/vflterminal/vleague_terminal.php?clientid=642&lang=" + SelectedLanguage.ToLowerInvariant() + "&resolution=1366&channel=" + channel); } return("http://vflsrterminal.aitcloud.de/vflterminal/vleague_terminal.php?clientid=642&lang=" + SelectedLanguage.ToLowerInvariant() + "&resolution=1920&channel=" + channel); }
public void OnLanguageChanged(int option) { _currSelectedLang = (SelectedLanguage)option; StopTalk(); }
private void PleaseWaitOnSave() { string result = ""; try { valueForm form = Values(); result = WsdlRepository.UpdateProfile((int)ChangeTracker.CurrentUser.AccountId, StationRepository.GetUid(new LoggedInUser(EditUserId.AccountId, null, 0, 0, 0, 0)), form); } catch (FaultException <HubServiceException> ex) { switch (ex.Detail.code) { case 101: foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields) { if (registrationField.Name == "username") { registrationField.ErrorText = TranslationProvider.Translate(MultistringTags.USERNAME_ALREADY_REGISTERED).ToString(); break; } } break; case 102: foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields) { if (registrationField.Name == "email") { registrationField.ErrorText = TranslationProvider.Translate(MultistringTags.MAIL_ALREADY_REGISTERED).ToString(); break; } } break; case 103: if (ex.Message.Contains("date_of_birth")) { foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields.Where(registrationField => registrationField.Name == "date_of_birth")) { registrationField.ErrorText = TranslationProvider.Translate(MultistringTags.TERMINAL_FORM_INVALIDVALUE).ToString(); break; } } if (ex.Message.Contains("firstname")) { foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields.Where(registrationField => registrationField.Name == "firstname")) { registrationField.ErrorText = TranslationProvider.Translate(MultistringTags.TERMINAL_FORM_INVALIDVALUE).ToString(); break; } } if (ex.Message.Contains("lastname")) { foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields.Where(registrationField => registrationField.Name == "lastname")) { registrationField.ErrorText = TranslationProvider.Translate(MultistringTags.TERMINAL_FORM_INVALIDVALUE).ToString(); break; } } if (ex.Message.Contains("password")) { foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields.Where(registrationField => registrationField.Name == "password")) { registrationField.ErrorText = TranslationProvider.Translate(MultistringTags.TERMINAL_FORM_INVALIDVALUE).ToString(); break; } } if (ex.Message.Contains("email")) { foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields.Where(registrationField => registrationField.Name == "email")) { registrationField.ErrorText = TranslationProvider.Translate(MultistringTags.TERMINAL_FORM_EMAIL_WRONGFORMAT).ToString(); break; } } if (ex.Message.Contains("address")) { foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields.Where(registrationField => registrationField.Name == "address")) { registrationField.ErrorText = TranslationProvider.Translate(MultistringTags.TERMINAL_INVALID_ADRESS).ToString(); break; } } if (ex.Message.Contains("document_number")) { foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields.Where(registrationField => registrationField.Name == "document_number")) { registrationField.ErrorText = TranslationProvider.Translate(MultistringTags.TERMINAL_INVALID_DOCUMENT_NUMBER).ToString(); break; } } if (ex.Message.Contains("phone")) { foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields.Where(registrationField => registrationField.Name == "phone")) { registrationField.ErrorText = TranslationProvider.Translate(MultistringTags.TERMINAL_INVALID_PHONE_NUMBER).ToString(); break; } } break; case 104: foreach (global::ViewModels.Registration registrationField in ChangeUserProfileFields) { if (registrationField.Name == "username") { registrationField.ErrorText = ex.Reason.Translations.Where(x => x.XmlLang.ToLowerInvariant() == SelectedLanguage.ToLowerInvariant()).Select(x => x.Text).FirstOrDefault(); break; } } break; default: ShowError(ex.Detail.message); break; } } if (result == "true") { IsEnabledForEditing = false; Mediator.SendMessage(MsgTag.HideKeyboard, MsgTag.HideKeyboard); List <global::ViewModels.Registration> temp = new List <global::ViewModels.Registration>(ChangeUserProfileFields); foreach (var field in temp) { field.IsEnabled = false; field.IsFocused = false; field.EmptyValidation = field.IsEnabled; } ChangeUserProfileFields = new List <global::ViewModels.Registration>(temp); } }
private void OnBindCard() { try { Blur(); var cards = WsdlRepository.GetIdCardInfo((int)ChangeTracker.CurrentUser.AccountId, Role.Operator); UnBlur(); if (cards != null && cards.Any(card => card.active == "1")) { var text = TranslationProvider.Translate(MultistringTags.USER_HAVE_ACTIVE_CARD_IT_WILL_BE_BLOCKED).ToString(); if (!StationRepository.IsIdCardEnabled) { text = TranslationProvider.Translate(MultistringTags.USER_HAVE_ACTIVE_BARCODECARD_IT_WILL_BE_BLOCKED).ToString(); } QuestionWindowService.ShowMessage(text, null, null, model_YesClick, null); } else { Mediator.SendMessage <long>(ChangeTracker.CurrentUser.AccountId, MsgTag.BindOperatorCard); OnPropertyChanged("IsCardButtonsActive"); OnPropertyChanged("BlockCardButtonsActive"); } } catch (FaultException <HubServiceException> error) { UnBlur(); if (error.Detail.code == 169) { Mediator.SendMessage <long>(ChangeTracker.CurrentUser.AccountId, MsgTag.BindOperatorCard); OnPropertyChanged("IsCardButtonsActive"); OnPropertyChanged("BlockCardButtonsActive"); } else { ShowError(error.Reason.Translations.Where(x => x.XmlLang.ToLowerInvariant() == SelectedLanguage.ToLowerInvariant()).Select(x => x.Text).FirstOrDefault()); } } OnPropertyChanged("IsEnablePinButtonVisible"); OnPropertyChanged("IsNewPinButtonVisible"); //Mediator.SendMessage<long>(ChangeTracker.CurrentUser.AccountId, MsgTag.BindOperatorCard); }
public static void ConfigureInputLanguageForTest(out InputLanguage originalInputLanguage, SelectedLanguage selectedLanguage) { originalInputLanguage = InputLanguage.CurrentInputLanguage; try { if (selectedLanguage == SelectedLanguage.Lithuanian || selectedLanguage == SelectedLanguage.Mixed) { CultureInfo lithuanianCultureInfo = CultureInfo.GetCultureInfo("lt-LT"); InputLanguage lithuanianLanguage = InputLanguage.FromCulture(lithuanianCultureInfo); InputLanguage.CurrentInputLanguage = // ReSharper disable once AssignNullToNotNullAttribute InputLanguage.InstalledInputLanguages.IndexOf(lithuanianLanguage) >= 0 ? lithuanianLanguage : originalInputLanguage; } } catch (Exception) { InputLanguage.CurrentInputLanguage = originalInputLanguage; } }
public static void HandleNextWordButtonEvent(Button validateWordButton, Button nextWordButton, TextBox correctWordTextBox, SelectedLanguage selectedLanguage, TextBox firstLanguageWordTextBox, TextBox secondLanguageWordTextBox, WordPair[] words) { if (!firstLanguageWordTextBox.Enabled) { firstLanguageWordTextBox.Enabled = true; } if (!secondLanguageWordTextBox.Enabled) { secondLanguageWordTextBox.Enabled = true; } validateWordButton.Visible = true; nextWordButton.Visible = false; correctWordTextBox.Visible = false; if (selectedLanguage == SelectedLanguage.Mixed) { bool currentEnWordTextBoxReadOnlyState = secondLanguageWordTextBox.ReadOnly; bool currentLtWordTextBoxReadOnlyState = firstLanguageWordTextBox.ReadOnly; secondLanguageWordTextBox.ReadOnly = !currentEnWordTextBoxReadOnlyState; firstLanguageWordTextBox.ReadOnly = !currentLtWordTextBoxReadOnlyState; RepositionConfirmAndNextWordButtons(validateWordButton, nextWordButton, firstLanguageWordTextBox, secondLanguageWordTextBox); } SetInputColorsOnNextWordEvent(firstLanguageWordTextBox, secondLanguageWordTextBox); WordPair currentUnknownWord = words.First(); firstLanguageWordTextBox.Text = firstLanguageWordTextBox.ReadOnly ? currentUnknownWord.FirstLanguageWord : String.Empty; secondLanguageWordTextBox.Text = secondLanguageWordTextBox.ReadOnly ? currentUnknownWord.SecondLanguageWord : String.Empty; if (!firstLanguageWordTextBox.ReadOnly) { firstLanguageWordTextBox.Focus(); } else { secondLanguageWordTextBox.Focus(); } }
static IEnumerable <Word> GetExactWords(IEnumerable <Word> words, string text, SelectedLanguage language) { if (language == SelectedLanguage.English) { return(words.Where(w => w.Definitions.ContainsInsensitive('/' + text + '/'))); } else { return(words.Where(w => w.Simplified == text)); //TODO add traditional } }
public static IEnumerable <Word> SortByExactity(this IEnumerable <Word> words, string text, SelectedLanguage language) {
private string SetVHCAddress(Screen screen) { if (screen.WorkingArea.Width <= 1250) { return("http://vhcsrterminal.aitcloud.de/vhcshop/terminal/1024/clientid:642/lang:" + SelectedLanguage.ToLowerInvariant() + "/channel:0"); } else if (screen.WorkingArea.Width <= 1350) { return("http://vhcsrterminal.aitcloud.de/vhcshop/terminal/1280/clientid:642/lang:" + SelectedLanguage.ToLowerInvariant() + "/channel:0"); } else if (screen.WorkingArea.Width <= 1900) { return("http://vhcsrterminal.aitcloud.de/vhcshop/terminal/1366/clientid:642/lang:" + SelectedLanguage.ToLowerInvariant() + "/channel:0"); } return("http://vhcsrterminal.aitcloud.de/vhcshop/terminal/1920/clientid:642/lang:" + SelectedLanguage.ToLowerInvariant() + "/channel:0"); }
public void setCurrentLanguage() { SelectedLanguage s = Resources.Load <SelectedLanguage>("SelectedLanguage"); currentLanguage = s.currentLanguage; }
private void SetWebAddress() { if (SelectedVirtual == Virtuals.VFL) { int iVFLSource = StationRepository.VFLSource; if (iVFLSource == 0) { // load from server WebAddress = "http://vflsrterminal.aitcloud.de/vflterminal/vleague_terminal.php?clientid=642&lang=" + SelectedLanguage.ToLowerInvariant() + "&resolution=1024&channel=0"; Mediator.SendMessage <string>("0|" + WebAddress, MsgTag.SetUpBrowser); } else if (iVFLSource == 1) { // read locally //WebAddress = "http://localhost/w/Start.html?lang=" + SelectedLanguage.ToLowerInvariant();// +"&resolution=800"; if (File.Exists("file:///W:/start.html")) { WebAddress = "file:///W:/start.html"; Mediator.SendMessage <string>("0|" + WebAddress, MsgTag.SetUpBrowser); } else { WebAddress = "about:blank"; Mediator.SendMessage <string>("0|" + WebAddress, MsgTag.SetUpBrowser); } } } else if (SelectedVirtual == Virtuals.VHC) { WebAddress = "http://vhcsrterminal.aitcloud.de/vhcshop/terminal/1024/clientid:642/lang:" + SelectedLanguage.ToLowerInvariant() + "/channel:0"; Mediator.SendMessage <string>("0|" + WebAddress, MsgTag.SetUpBrowser); //WebAddress = "http://vhcdev.aitcloud.de/vhctesting/vhc/index/clientid:642/lang:" + SelectedLanguage.ToLowerInvariant(); //no hosted solution yet } else { WebAddress = "about:blank"; //no hosted solution yet Mediator.SendMessage <string>("0|" + WebAddress, MsgTag.SetUpBrowser); } _sVideoURI = WebAddress; OnPropertyChanged("WebAddress"); }