Ejemplo n.º 1
0
        public void Add()
        {
            Paystub temp = new Paystub()
            {
                Index = (uint)PaystubDataList.Count + 1
            };

            if (NameInput != null)
            {
                temp.Name = NameInput;
            }

            if (GrossInput != null)
            {
                temp.Gross = (decimal)GrossInput;
            }

            if (NetInput != null)
            {
                temp.Net = (decimal)NetInput;
            }

            PaystubDataList.Add(temp);
            ClearInputFields();
        }
Ejemplo n.º 2
0
 public void AddPaystub()
 {
     PaystubDataList.Add(Paystub.Default((uint)PaystubDataList.Count));
 }