Beispiel #1
0
        private void OnEvent1Execute(object sender, EventArgs e)
        {
            PaymentModel payment = (PaymentModel)sender;

            if (payment.PaymentId == 11)
            {
                if (_intId == 0)
                {
                    ShellOut.Add(new ShellOutModel {
                        PaymentId = payment.PaymentId, PaymentName = payment.PaymentName, PaymentBalance = "0"
                    });
                    StaticClass.GeneralClass.lstCash.Add(Convert.ToInt32(payment.PaymentId));
                }
                else
                {
                    string _strId = payment.PaymentId.ToString() + _intId.ToString();
                    ShellOut.Add(new ShellOutModel {
                        PaymentId = Convert.ToInt32(_strId), PaymentName = payment.PaymentName, PaymentBalance = "0"
                    });
                    StaticClass.GeneralClass.lstCash.Add(Convert.ToInt32(_strId));
                }
                _lstIndex.Insert(_intId, "0:0");
                _intId++;
            }
            else
            {
                ShellOut.Add(new ShellOutModel {
                    PaymentId = payment.PaymentId, PaymentName = payment.PaymentName, PaymentBalance = "0"
                });
                StaticClass.GeneralClass.lstCash.Add(Convert.ToInt32(payment.PaymentId));
            }
        }