public CurrencyRateSettingPage()
 {
     this.InitializeComponent();
     this.tempCurrencyWapperForEdit = AppSetting.Instance.CurrencyInfo;
     TiltEffect.SetIsTiltEnabled(this, true);
     base.Loaded += new RoutedEventHandler(this.CurrencyRateSettingPage_Loaded);
 }
 public System.Collections.Generic.IEnumerable<CurrencyWapper> LoadCurrencyRateListBy(CurrencyWapper fromCurrency)
 {
     if (fromCurrency.Currency != CurrencyWapper.CompareToCurrency)
     {
         CurrencyWapper.CompareToCurrency = fromCurrency.Currency;
         CurrencyHelper.RaiseRateChanging(fromCurrency.Currency);
     }
     return CurrencyHelper.CurrencyTable;
 }
 private void SetCurrencyStyle(CurrencyWapper currency)
 {
     this.currencyStyleList[0] = currency.CurrencyString + 100000M.ToMoneyF2();
     this.currencyStyleList[1] = currency.CurrencyStringWithNameFirst + 100000M.ToMoneyF2();
 }
 private void ToCurrencyListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     CurrencyWapper selectedItem = this.ToCurrencyListBox.SelectedItem as CurrencyWapper;
     if (selectedItem != null)
     {
         this.tempCurrencyWapperForEdit = selectedItem;
         InputPrompt prompt2 = new InputPrompt
         {
             InputScope = MoneyInputTextBox.NumberInputScope
         };
         InputPrompt prompt = prompt2;
         prompt.Completed += new System.EventHandler<PopUpEventArgs<string, PopUpResult>>(this.rateInputBox_Completed);
         prompt.Title = this.editPivotTitle;
         prompt.Message = this.editRateFormatter.FormatWith(new object[] { this.tempFromCurrencyWapper.CurrencyNameWithSymbol, this.tempCurrencyWapperForEdit.CurrencyNameWithSymbol });
         this.tempValue = this.tempCurrencyWapperForEdit.RateToCompareToCurrency;
         prompt.Value = this.tempValue;
         prompt.Show();
         this.ToCurrencyListBox.SelectedItem = null;
     }
 }