Exemplo n.º 1
0
        public CardInfoView()
        {
            InitializeComponent();

            Caption.Background = ShellView.CaptionBrush;

            CardNumberLabel.SetTextBox(new CardTextBox());
            ExpirationDateLabel.SetTextBox(new DateTextBox());

            Loaded += (sender, args) =>
            {
                ViewModel.PropertyChanged += OnViewModelPropertyChanged;
            };
            Unloaded += (sender, args) =>
            {
                ViewModel.PropertyChanged -= OnViewModelPropertyChanged;
            };
        }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (AmountDetailsView != null)
            {
                AmountDetailsView.Dispose();
                AmountDetailsView = null;
            }

            if (AmountLabel != null)
            {
                AmountLabel.Dispose();
                AmountLabel = null;
            }

            if (CardDetailsView != null)
            {
                CardDetailsView.Dispose();
                CardDetailsView = null;
            }

            if (CardExpirationLabel != null)
            {
                CardExpirationLabel.Dispose();
                CardExpirationLabel = null;
            }

            if (CardHolderNameLabel != null)
            {
                CardHolderNameLabel.Dispose();
                CardHolderNameLabel = null;
            }

            if (CardNumberLabel != null)
            {
                CardNumberLabel.Dispose();
                CardNumberLabel = null;
            }

            if (ContactSupportButton != null)
            {
                ContactSupportButton.Dispose();
                ContactSupportButton = null;
            }

            if (DateLabel != null)
            {
                DateLabel.Dispose();
                DateLabel = null;
            }

            if (DescriptionTextView != null)
            {
                DescriptionTextView.Dispose();
                DescriptionTextView = null;
            }

            if (MerchantNameLabel != null)
            {
                MerchantNameLabel.Dispose();
                MerchantNameLabel = null;
            }
        }