public void CmdTabSelected(DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { try { if (e.NewSelectedIndex.Equals(1)) { GetUserInfo(); if (string.IsNullOrEmpty(userAccountNo.Trim()) || string.IsNullOrEmpty(userPhoneNumber.Trim())) { //idx = 0; alert = new Alert(Localization.Resource.RechargeDepositWithdraw_Common_25, 350); alert.ShowDialog(); } else { NoticePopup note = new Views.NoticePopup(NoticePopup.KindNotice.ReCharge); note.Title = string.Format(Localization.Resource.NoticePopup_2, SC); note.ShowDialog(); } } } catch (Exception ex) { SysLog.Error("Message[{0}], StackTrace[{1}]", ex.Message, ex.StackTrace); } }
void tabControl1_SelectionChanged(object sender, DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { if (IsInitialized && (e.NewSelectedIndex == 1)) { Process(); } }
private void tabControl_SelectionChanged(object sender, DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { if (tabControl == null || richEditControlProvider == null) { return; } bool isSelectedSourceControl = object.ReferenceEquals(tabControl.SelectedItem, templateTabItem); pageMailings.IsVisible = isSelectedSourceControl; pageReferences.IsVisible = !isSelectedSourceControl; if (isSelectedSourceControl) { ribbon.SelectedPage = pageMailings; targetRichEditControl.BarManager = null; sourceRichEditControl.BarManager = barManager1; targetRichEditControl.Ribbon = null; sourceRichEditControl.Ribbon = ribbon; richEditControlProvider.RichEditControl = sourceRichEditControl; } else { ribbon.SelectedPage = pageReferences; sourceRichEditControl.BarManager = null; targetRichEditControl.BarManager = barManager1; sourceRichEditControl.Ribbon = null; targetRichEditControl.Ribbon = ribbon; richEditControlProvider.RichEditControl = targetRichEditControl; } }
public void CmdMenuSelected(DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { try { string temp = StringEnum.ToEnum <EnumLib.ExchangeCurrencyCode>(((DevExpress.Xpf.Core.DXTabItem)e.NewSelectedItem).Tag.ToString()).ToString(); HeaderName = temp.Equals("KRW") ? CommonLib.StandardCurcyNm : temp; HeaderCode = ((DevExpress.Xpf.Core.DXTabItem)e.NewSelectedItem).Tag.ToString(); if (MainViewModel.mQClient.CoinPriceData2.ToList().Where(w => w.Key.Key == HeaderCode && w.Key.Value == SelectTime.Value).Count() > 0) { CoinSocketData(MainViewModel.mQClient.CoinPriceData2[new KeyValuePair <string, string>(HeaderCode, SelectTime.Value)]); } if (HeaderCode.Equals(CommonLib.StandardCurcyCd)) { CommonFloat = "n0"; } else { CommonFloat = "n8"; } CmdSelectCoin(SelectItem); } catch (Exception ex) { SysLog.Error("Message[{0}], StackTrace[{1}]", ex.Message, ex.StackTrace); } }
private void tabControl_SelectionChanged(object sender, DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { if (tabControl == null || richEditControlProvider == null) { return; } RichEditControl selectedRichEditControl = GetSelectedRichEditControl(); ResetBarManagers(); selectedRichEditControl.BarManager = barManager1; selectedRichEditControl.Ribbon = ribbon; richEditControlProvider.RichEditControl = selectedRichEditControl; bool isSelectedResultingControl = object.ReferenceEquals(selectedRichEditControl, resultingRichEditControl); bool isPageMailingsSelected = pageMailings.IsSelected; bool isPageMailingsWithoutMergeSelected = pageMailingsWithoutMerge.IsSelected; bool oldPageMailingsVisible = pageMailings.IsVisible; pageMailings.IsVisible = !isSelectedResultingControl; pageMailingsWithoutMerge.IsVisible = isSelectedResultingControl; if (oldPageMailingsVisible != pageMailings.IsVisible) { pageMailings.IsSelected = !isSelectedResultingControl && isPageMailingsWithoutMergeSelected; pageMailingsWithoutMerge.IsSelected = isSelectedResultingControl && isPageMailingsSelected; } }
void tabControl_SelectionChanged(object sender, DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { ExampleLanguage value = (ExampleLanguage)(e.NewSelectedIndex); if (this.codeEditor != null) { this.codeEditor.CurrentExampleLanguage = value; } }
void tabControl_SelectionChanged(object sender, DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { RichEditControl selectedRichEditControl = GetSelectedRichEditControl(); if (selectedRichEditControl == null) { return; } ResetBarManagers(); selectedRichEditControl.BarManager = barManager1; selectedRichEditControl.Ribbon = ribbon; }
private void tabControl_SelectionChanged(object sender, DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { switch (tabControl.SelectedIndex) { case 0: richEdit = richEditControl1; this.btnMailMerge.IsEnabled = true; break; case 1: richEdit = richEditControl2; this.btnMailMerge.IsEnabled = false; break; } }
public void CmdTabChanged(DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { try { string OrderCode = ((DevExpress.Xpf.Core.DXTabItem)e.NewSelectedItem).Tag.ToString(); nowTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); //bCheck = false; //bCheckEnable = false; GetArbitrageData(OrderCode); GetArbitrageTradeList(); } catch (Exception ex) { SysLog.Error("Message[{0}], StackTrace[{1}]", ex.Message, ex.StackTrace); } }
private void TabControl_SelectionChanged(object sender, DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { }
private void OnSelectTabChanged(object sender, DevExpress.Xpf.Core.TabControlSelectionChangedEventArgs e) { SearchIfNotYetLoaded(); }