CloverExamplePOS.CustomerCardCaptureForm.okButton_Click C# (CSharp) Méthode

okButton_Click() private méthode

private okButton_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void
        private void okButton_Click(object sender, EventArgs e)
        {
            // need to save this information
            Card = new POSCard();
            Card.Name = CustomerNameTextBox.Text;
            Card.First6 = First6TextBox.Text;
            Card.Last4 = Last4TextBox.Text;
            Card.Month = MonthComboBox.SelectedItem.ToString();
            Card.Year = YearComboBox.SelectedItem.ToString();
            Card.Token = Payment.cardTransaction.token;

            Store.Cards.Add(Card);

            this.Close();
        }