예제 #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();
        }
예제 #2
0
 public void AddPaystub()
 {
     PaystubDataList.Add(Paystub.Default((uint)PaystubDataList.Count));
 }