Esempio n. 1
0
        public static PaymentState Create(int id, string caption, string color)
        {
            PaymentState psi = PaymentState.Create();

            psi.Id      = id;
            psi.Caption = caption;
            psi.Color   = color;
            return(psi);
        }
Esempio n. 2
0
 private void CreatePaymentStates()
 {
     PaymentStates.Add(PaymentState.Create(id: 0, caption: "Unpaid", color: "Tomato"));
     PaymentStates.Add(PaymentState.Create(id: 1, caption: "Paid", color: "LightGreen"));
 }