Пример #1
0
        private void ShowAffirmation(ISpotTileAffirmationViewModel vm)
        {
            if (IsShowingAffirmation)
            {
                return;
            }

            HideKeyboard(NotionalTextBox);
            AnimationFactory.FlipTransition(ViewAnimator, FlipDirection.LeftRight, 200);

            ItemView.FindViewById <TextView>(Resource.Id.ConfirmDirectionTextView).Text    = vm.Direction == Domain.Models.Direction.BUY ? "Bought" : "Sold";
            ItemView.FindViewById <TextView>(Resource.Id.ConfirmCurrencyPairTextView).Text = vm.CurrencyPair;
            ItemView.FindViewById <TextView>(Resource.Id.ConfirmNotionalTextView).Text     = $"{vm.Notional:N0} {vm.DealtCurrency}";
            ItemView.FindViewById <TextView>(Resource.Id.ConfirmSpotRateTextView).Text     = vm.SpotRate.ToString(CultureInfo.InvariantCulture);
            ItemView.FindViewById <TextView>(Resource.Id.ConfirmStatusTextView).Text       = vm.Rejected;
            ItemView.FindViewById <TextView>(Resource.Id.ConfirmTradeIdTextView).Text      = vm.TradeId.ToString();
        }
        private void ShowAffirmation(ISpotTileAffirmationViewModel vm)
        {
            if (IsShowingAffirmation)
            {
                return;
            }

            HideKeyboard(NotionalTextBox);
            AnimationFactory.FlipTransition(ViewAnimator, FlipDirection.LeftRight, 200);

            ItemView.FindViewById<TextView>(Resource.Id.ConfirmDirectionTextView).Text = vm.Direction == Domain.Models.Direction.BUY ? "Bought" : "Sold";
            ItemView.FindViewById<TextView>(Resource.Id.ConfirmCurrencyPairTextView).Text = vm.CurrencyPair;
            ItemView.FindViewById<TextView>(Resource.Id.ConfirmNotionalTextView).Text = $"{vm.Notional:N0} {vm.DealtCurrency}";
            ItemView.FindViewById<TextView>(Resource.Id.ConfirmSpotRateTextView).Text = vm.SpotRate.ToString(CultureInfo.InvariantCulture);
            ItemView.FindViewById<TextView>(Resource.Id.ConfirmStatusTextView).Text = vm.Rejected;
            ItemView.FindViewById<TextView>(Resource.Id.ConfirmTradeIdTextView).Text = vm.TradeId.ToString();
        }