public TC_CallSession() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); var lstColumnHeader = new List <string> { LanguageResource.FindResourceMessageByKey("textchat_id"), LanguageResource.FindResourceMessageByKey("textchat_callID"), LanguageResource.FindResourceMessageByKey("textchat_isInnerCall"), LanguageResource.FindResourceMessageByKey("textchat_subMediaType"), LanguageResource.FindResourceMessageByKey("textchat_realcaller"), LanguageResource.FindResourceMessageByKey("textchat_callerName"), LanguageResource.FindResourceMessageByKey("textchat_starttime"), LanguageResource.FindResourceMessageByKey("textchat_endtime"), LanguageResource.FindResourceMessageByKey("textchat_releasecause"), }; if (null == dgrd_callsession || null == dgrd_callsession.Columns || lstColumnHeader.Count != dgrd_callsession.Columns.Count) { return; } for (int i = 0; i < dgrd_callsession.Columns.Count; i++) { dgrd_callsession.Columns[i].Header = lstColumnHeader[i]; } }
public LoginWindow(AgentInfo info) { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); tbPhone.Text = info.PhoneNumber; tbWorkNo.SetText(info.AgentId); }
public MsgViewWindow() { InitializeComponent(); if (m_MsgInfo == null) { m_MsgInfo = new List <MessageInfo>(); } #region 控件设置 LanguageResource.ChangeWindowLanguage(this); ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("msgview_head")); var lstColumnHeader = new List <string> { LanguageResource.FindResourceMessageByKey("msgview_time"), LanguageResource.FindResourceMessageByKey("msgview_sender"), LanguageResource.FindResourceMessageByKey("msgview_type"), }; if (dgrdMsgList != null && dgrdMsgList.Columns != null) { for (int i = 0; i < dgrdMsgList.Columns.Count; i++) { dgrdMsgList.Columns[i].Header = lstColumnHeader[i]; } } #endregion }
public InstructionWindow() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); tbNotify.Text = LanguageResource.FindResourceMessageByKey("instruction_cti"); btnClose.Content = LanguageResource.FindResourceMessageByKey("cancel"); }
public TC_CallContent() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); btn_qry.Click += btn_qry_Click; dgrd_callcontent.SelectionChanged += DataGridSelectionChanged; var lstColumnHeader = new List <string> { LanguageResource.FindResourceMessageByKey("textchat_id"), LanguageResource.FindResourceMessageByKey("textchat_callID"), LanguageResource.FindResourceMessageByKey("textchat_subMediaType"), LanguageResource.FindResourceMessageByKey("textchat_sender"), LanguageResource.FindResourceMessageByKey("textchat_receiver"), LanguageResource.FindResourceMessageByKey("textchat_contenttype"), LanguageResource.FindResourceMessageByKey("textchat_content"), LanguageResource.FindResourceMessageByKey("textchat_direction"), }; if (null == dgrd_callcontent || null == dgrd_callcontent.Columns || lstColumnHeader.Count != dgrd_callcontent.Columns.Count) { return; } for (int i = 0; i < dgrd_callcontent.Columns.Count; i++) { dgrd_callcontent.Columns[i].Header = lstColumnHeader[i]; } }
public OtherSettingsWin() { InitializeComponent(); _instance = this; LanguageResource.ChangeWindowLanguage(this); QryAndShowAgentSkillsInfo(); }
/// <summary> /// window initial method extentds /// </summary> /// <param name="vrc">axVrcControl instance</param> /// <param name="agentId">agentID</param> /// <param name="info">Vrc server ip and port</param> /// <remarks>info format: ip(port)</remarks> public RecordWin(AxVRCCONTROLLib.AxVRCControl vrc, string agentId) { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); this._agentID = agentId; this._vrc = vrc; _agwBus = BusinessAdapter.GetBusinessInstance() as AgentGatewayBusiness; }
public LoginWindow(AgentInfo info, bool useVoice, string phoneNum) { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); tbWorkNo.SetText(info.AgentId); tbPhone.IsEnabled = !useVoice; tbPhone.Text = useVoice ? phoneNum : info.PhoneNumber; }
public HoldListWindow(OperateType operateType) { _myType = operateType; this.Loaded += new RoutedEventHandler(HoldListWindow_Load); LanguageResource.ChangeWindowLanguage(this); InitializeComponent(); this.Closed += new EventHandler(Close); }
public void PublicTooltip_Load(object sender, RoutedEventArgs e) { //刷新窗体语言内容 LanguageResource.ChangeWindowLanguage(this); //this.Title = MainWindow.Instance().TryFindResource("publicTooltip") != null ? MainWindow.Instance().TryFindResource("publicTooltip").ToString() : ""; //this.Btn_OK.Content = MainWindow.Instance().TryFindResource("ok") != null ? MainWindow.Instance().TryFindResource("ok") : ""; //this.Btn_Cancel.Content = MainWindow.Instance().TryFindResource("cancel") != null ? MainWindow.Instance().TryFindResource("cancel") : ""; }
public InnerCall() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); var lstAgent = MainWindow.Instance().GetAgentStateInfoList(); agentInfoCtrl.SetSource(lstAgent); ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("internalcall_head")); }
public CallTransferWindow() { InitializeComponent(); ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("transcall_head")); LanguageResource.ChangeWindowLanguage(this); LoadAgentStatusInfo(); lstIVRDevice.ItemsSource = MainWindow.Instance().GetIvrInfoList(); lstSkillsQueue.ItemsSource = MainWindow.Instance().GetSkillInfoList(); }
public TransferOutWindow() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); txtCallerNumber.SetText(MainWindowVM.GetInstance().CallerNumber); txtCalledNumber.SetText(MainWindowVM.GetInstance().CalledNumber); ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("transout_head")); txtCallerNumber.SetReadOnly(true); txtCalledNumber.SetReadOnly(true); }
public ConfigWindow(Dictionary <string, string> settings, AgentInfo agentInfo) { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("config_head")); cbAgentType.ItemsSource = m_dicAgentType.Keys; cbAgentType.SelectedIndex = 0; Settings = settings; LoadConfig(); lblUseSsl.Visibility = Visibility.Collapsed; chkUseHttps.IsChecked = true; chkUseHttps.Visibility = Visibility.Collapsed; tbLongCall.Visibility = System.Windows.Visibility.Collapsed; chkLongCall.Visibility = System.Windows.Visibility.Collapsed; chkLongCall.IsChecked = false; }
public InnerConsultWindow() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); lstSkillsQueue.ItemsSource = MainWindow.Instance().GetSkillInfoList(); var agentSrc = MainWindow.Instance().GetAgentStateInfoList(); if (agentSrc != null) { lstAgentStatusInfo.ItemsSource = agentSrc.Select(item => new AgentStateInfoWrapper(item)).ToList(); } this.Closed += new EventHandler(Close); ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("internalhelp_head")); tctlConsultType.SelectionChanged += tctlConsultType_SelectionChanged; }
/// <summary> /// window initail method /// </summary> public TC_Sms() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); var business = BusinessAdapter.GetBusinessInstance() as AgentGatewayBusiness; if (null == business) { return;; } var lstSkills = business.GetAgentSkills(); UIViewHelper.SelectorResetSource(cb_skills, lstSkills); if (null == lstSkills || 0 == lstSkills.Count) { return; } cb_skills.SelectedIndex = 0; }
public AgentRegisterWindow(IList <SkillInfo> items, string phoneNo) { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); _lstOriSkills = new List <SkillItem>(); lstSelectSkills = new List <SkillInfo>(); RadioButton_AutoRegister.Checked += RadioButton_AutoRegister_Checked; RadioButton_HandMovement.Checked += RadioButton_HandMovement_Checked; btnCancel.Click += Button_Cancel_Click; btnConfirm.Click += Button_Confirm_Click; foreach (SkillInfo item in items) { _lstOriSkills.Add(new SkillItem(item)); } ListView_Skill.ItemsSource = _lstOriSkills; ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("login_head")); }
public TC_CallTrans() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); var lstSkillsSrc = ((AgentGatewayBusiness)(BusinessAdapter.GetBusinessInstance())).QrySkillsOnAgentVDN(); var lstItemsSkills = new List <AGWVdnSkills>(); if (lstSkillsSrc != null && lstSkillsSrc.Count > 0) { foreach (var item in lstSkillsSrc) { if (item.mediatype != 1) { continue; } lstItemsSkills.Add(item); } lst_skills.ItemsSource = lstItemsSkills; } }
public CallInfoCtrl() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); SelectIndex = -1; var lstColumnHeader = new List <string> { LanguageResource.FindResourceMessageByKey("indexNo"), LanguageResource.FindResourceMessageByKey("callingNumber"), LanguageResource.FindResourceMessageByKey("calledNumber"), LanguageResource.FindResourceMessageByKey("mediaType") }; if (dgrdCallList != null && dgrdCallList.Columns != null) { for (int i = 0; i < dgrdCallList.Columns.Count; i++) { dgrdCallList.Columns[i].Header = lstColumnHeader[i]; } } }
public CallOutWindow() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); this.Closed += new EventHandler(Window_Close); #region 控件设置(技能,媒体能力) ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("outcall_head")); cbxMedia.ItemsSource = BusinessAdapter.CurrentBusinessType == BusinessType.OCX ? DIC_MCP_MEDIA.Values : DIC_AGW_MEDIA.Values; cbxMedia.SelectedIndex = BusinessAdapter.CurrentBusinessType == BusinessType.OCX ? 2 : 0; _skillSrc = BusinessAdapter.GetBusinessInstance().GetAgentSkills(); if (null == _skillSrc || _skillSrc.Count == 0) { return; } // 查询技能,增加一项 "默认" _skillSrc.Insert(0, new SkillInfo() { name = LanguageResource.FindResourceMessageByKey("outcall_default"), id = "0", mediatype = "5" }); cbxSkill.ItemsSource = _skillSrc.Select(item => item.name).ToList(); cbxSkill.SelectedIndex = 0; #endregion #region 控件样式 txtBlockSkill.Style = (Style)this.FindResource("txtBlockStyle"); lblCalledNumber.Style = (Style)this.FindResource("txtBlockStyle"); lblCallerNumber.Style = (Style)this.FindResource("txtBlockStyle"); txtBlockMedia.Style = (Style)this.FindResource("txtBlockStyle"); txtBlockCheck.Style = (Style)this.FindResource("txtBlockStyle"); #endregion }
public SnapShot(VoiceOCXBusiness voice) { InitializeComponent(); this._voice = voice; LanguageResource.ChangeWindowLanguage(this); }
private void RestWindow_Load(object sender, RoutedEventArgs e) { LanguageResource.ChangeWindowLanguage(this); }
public InstallCertification() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); }
//窗体加载事件 private void Window_Loaded(object sender, RoutedEventArgs e) { //刷新窗体语言内容 LanguageResource.ChangeWindowLanguage(this); }
private void InitialWindow() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); }
public AgentRegisterWindow() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("login_head")); }
private void InitialWindow() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("setdata_head")); }
public LoginWindow() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); }
public TC_Common() { InitializeComponent(); LanguageResource.ChangeWindowLanguage(this); }
/// <summary> /// 界面初始化 /// </summary> private void WindowInitial() { LanguageResource.ChangeWindowLanguage(this); ctrlHead.SetText(LanguageResource.FindResourceMessageByKey("sendnote_head")); }