private void LanguageUpdate(SupportedLanguage l) { this.btnCopy.Text = l.GetText(MsgCode.copy); this.lbTitle.Text = l.GetText(MsgCode.select); this.btnBluetooth.SetScreenReader("Bluetooth"); this.btnWifi.SetScreenReader("WIFI"); }
private void languageChangedHandler(object sender, SupportedLanguage l) { Dispatcher.Invoke(() => { try { // Buttons this.btnSend.Content = l.GetText(MsgCode.Write); this.btnRead.Content = l.GetText(MsgCode.Read); // Labels this.lblServiceLabel.Content = l.GetText(MsgCode.Service); this.lblCharacteristicLabel.Content = l.GetText(MsgCode.Characteristic); this.lblInfoLabel.Content = l.GetText(MsgCode.info); // Content if (this.selected == null) { this.lblCharacteristicName.Content = ""; } else { // translation and assembly happen in wrapper DI.Wrapper.BLE_GetRangeDisplay( this.selected, this.DelegateSelectSuccess, App.ShowMsg); } } catch (Exception e) { this.log.Exception(9999, "LanguageChangeHandler", "", e); } }); }
private void UpdateLanguage(SupportedLanguage l) { this.lbTitle.Text = l.GetText(MsgCode.Terminators); this.btnAdd.SetScreenReader(l.GetText(MsgCode.New)); this.btnDelete.SetScreenReader(l.GetText(MsgCode.Delete)); this.btnEdit.SetScreenReader(l.GetText(MsgCode.Edit)); }
private void UpdateLanguage(SupportedLanguage l) { this.lbTitle.Text = l.GetText(MsgCode.Edit); this.btnCancel.SetScreenReader(l.GetText(MsgCode.cancel)); this.btnDelete.SetScreenReader(l.GetText(MsgCode.Delete)); this.btnSave.SetScreenReader(l.GetText(MsgCode.save)); }
private void LanguageUpdate(SupportedLanguage l) { this.lbTitle.Text = "WIFI"; this.btnCredentials.SetScreenReader(l.GetText(MsgCode.Credentials)); this.btnDiscover.SetScreenReader(l.GetText(MsgCode.Search)); this.btnSelect.SetScreenReader(l.GetText(MsgCode.select)); }
private void LanguageUpdate(SupportedLanguage l) { this.lbTitle.Text = l.GetText(MsgCode.Credentials); this.btnAdd.SetScreenReader(l.GetText(MsgCode.New)); this.btnDelete.SetScreenReader(l.GetText(MsgCode.Delete)); this.btnEdit.SetScreenReader(l.GetText(MsgCode.Edit)); }
/// <summary>Delegate to handle updated language selection</summary> /// <param name="language">The current language</param> private void UpdateLanguage(SupportedLanguage language) { this.lbTitle.Text = language.GetText(MsgCode.Edit); this.lblCmd.Text = language.GetText(MsgCode.command); this.lblName.Text = language.GetText(MsgCode.Name); this.btnCancel.SetScreenReader(MsgCode.cancel); this.btnSave.SetScreenReader(MsgCode.save); }
private void UpdateLanguage(SupportedLanguage l) { this.lbTitle.Text = l.GetText(MsgCode.About); this.btnUserManual.Text = l.GetText(MsgCode.UserManual); this.lbAuthor.Text = l.GetText(MsgCode.Author); this.lbIcons.Text = l.GetText(MsgCode.Icons); this.txtSupport.Text = l.GetText(MsgCode.Support); }
private void OnLanguageUpdate(SupportedLanguage l) { this.lbTitle.Text = l.GetText(MsgCode.Run); this.btnConnect.Text = l.GetText(MsgCode.connect); this.btnDisconnect.Text = l.GetText(MsgCode.Disconnect); this.btnSend.Text = l.GetText(MsgCode.send); //this.lblCmds.Text = l.GetText(MsgCode.commands); this.lblResponses.Text = l.GetText(MsgCode.response); }
private void SetLanguage(SupportedLanguage l) { this.Dispatcher.Invoke(() => { this.buttonSizer.PrepForChange(); this.InvalidateVisual(); this.btnClearLog.Content = l.GetText(MsgCode.Clear); this.btnCopyLog.Content = l.GetText(MsgCode.copy); }); }
private void UpdateLanguage(SupportedLanguage language) { this.lbTitle.Text = language.GetText(MsgCode.commands); this.lbName.Text = language.GetText(MsgCode.Name); this.btnAdd.SetScreenReader(MsgCode.New); this.btnDelete.SetScreenReader(MsgCode.Delete); this.btnEdit.SetScreenReader(MsgCode.Edit); this.btnSave.SetScreenReader(MsgCode.save); this.btnCancel.SetScreenReader(MsgCode.cancel); }
/// <summary>Handle the language changed event to update controls text</summary> private void LanguageChangedHandler(object sender, SupportedLanguage l) { try { this.btnExit.Content = l.GetText(MsgCode.exit); this.lbAuthor.Content = l.GetText(MsgCode.Author); this.lbIcons.Content = l.GetText(MsgCode.Icons); this.txtUserManual.Text = l.GetText(MsgCode.UserManual); this.txtSupport.Text = l.GetText(MsgCode.Support); } catch (Exception ex) { this.log.Exception(9999, "TitleBarBorder_MouseDown", "", ex); } }
private void Languages_LanguageChanged(object sender, SupportedLanguage l) { this.Dispatcher.Invoke(() => { try { this.Title = l.GetText(MsgCode.language); this.widthManager.PrepForChange(); this.btnSave.Content = l.GetText(MsgCode.save); this.btnCancel.Content = l.GetText(MsgCode.cancel); } catch (Exception ex) { this.log.Exception(9999, "Languages_LanguageChanged", "", ex); } }); }
private void LanguageUpdate(SupportedLanguage language) { this.lbTitle.Text = language.GetText(MsgCode.commands); this.btnAdd.SetScreenReader(MsgCode.New); this.btnDelete.SetScreenReader(MsgCode.Delete); this.btnEdit.SetScreenReader(MsgCode.Edit); }
private void UpdateLanguage(SupportedLanguage language) { this.lbTitle.Text = language.GetText(MsgCode.PairedDevices); this.btnDiscover.SetScreenReader(MsgCode.Search); this.btnPair.SetScreenReader(MsgCode.Pair); this.btnUnPair.SetScreenReader(MsgCode.Unpair); this.btnSelect.SetScreenReader(MsgCode.select); }
private void SetLanguage(SupportedLanguage l) { this.Dispatcher.Invoke(() => { try { this.buttonSizer.PrepForChange(); this.btnConnect.Content = l.GetText(MsgCode.connect); this.btnDisconnect.Content = l.GetText(MsgCode.Disconnect); this.btnLog.Content = l.GetText(MsgCode.Log); this.btnExit.Content = l.GetText(MsgCode.exit); this.btnCommands.Content = l.GetText(MsgCode.commands); DI.Wrapper.Translate(this.currentDevice); this.dataChanged = true; this.ResizeOnNormal(); } catch (Exception e) { this.log.Exception(9999, "SetLanguage", "", e); } }); }
private void UpdateLanguage(SupportedLanguage l) { this.lbTitle.Text = l.GetText(MsgCode.Credentials); this.lbSsid.Text = l.GetText(MsgCode.Name); this.lbPwd.Text = l.GetText(MsgCode.NetworkSecurityKey); this.lbHost.Text = l.GetText(MsgCode.HostName); this.lbPort.Text = l.GetText(MsgCode.Port); this.btnSave.Text = l.GetText(MsgCode.save); this.btnCancel.Text = l.GetText(MsgCode.cancel); }
private void LanguageUpdate(SupportedLanguage l) { this.lbTitle.Text = l.GetText(MsgCode.Edit); this.lbSsid.Text = l.GetText(MsgCode.Name); this.lbPwd.Text = l.GetText(MsgCode.NetworkSecurityKey); this.lbHost.Text = l.GetText(MsgCode.HostName); this.lbPort.Text = l.GetText(MsgCode.Port); this.btnCancel.SetScreenReader(l.GetText(MsgCode.cancel)); this.btnSave.SetScreenReader(l.GetText(MsgCode.save)); }
private void UpdateLanguage(SupportedLanguage language) { this.flyAbout.Title = language.GetText(MsgCode.About); this.flyLanguage.Title = language.GetText(MsgCode.language); this.flyBluetooth.Title = "Bluetooth"; // Seems same in all languages this.flyWifi.Title = "WIFI"; // Same in all languages this.flyAbout.Title = language.GetText(MsgCode.About); this.flyTerminators.Title = language.GetText(MsgCode.Terminators); this.flyLanguage.Title = language.GetText(MsgCode.language); this.flyCommands.Title = language.GetText(MsgCode.commands); this.flySamples.Title = language.GetText(MsgCode.CodeSamples); }
private void SetLanguage(SupportedLanguage l) { this.buttonSizer.PrepForChange(); this.InvalidateVisual(); this.lbResponse.Content = l.GetText(MsgCode.response); this.btnSend.Content = l.GetText(MsgCode.send); this.btnConnect.Content = l.GetText(MsgCode.connect); this.btnDisconnect.Content = l.GetText(MsgCode.Disconnect); this.btnLog.Content = l.GetText(MsgCode.Log); this.btnExit.Content = l.GetText(MsgCode.exit); }
private void UpdateLanguage(SupportedLanguage l) { this.lbTitle.Text = l.GetText(MsgCode.commands); this.btnSelect.SetScreenReader(l.GetText(MsgCode.select)); this.btnCancel.SetScreenReader(l.GetText(MsgCode.cancel)); }
private void updateLanguage(SupportedLanguage l) { this.btnOk.Text = l.GetText(MsgCode.Ok); }
private void updateLanguage(SupportedLanguage l) { this.btnYes.Text = l.GetText(MsgCode.yes); this.btnNo.Text = l.GetText(MsgCode.no); }
private void UpdateLanguage(SupportedLanguage language) { Device.BeginInvokeOnMainThread(() => this.lbTitle.Text = language.GetText(MsgCode.language)); }
private void languageChanged(object sender, SupportedLanguage l) { this.lblCmdDataTypeLabel.Content = l.GetText(MsgCode.DataType); }
private void UpdateLanguage(SupportedLanguage l) { this.lbTitle.Text = l.GetText(MsgCode.PairBluetooth); this.btnDiscover.SetScreenReader(MsgCode.Search); this.btnPair.SetScreenReader(MsgCode.Pair); }