public static void Pays() { GenericCollection.pay.Clear(); List <Pay> u = Pay.ListOnline("SELECT * FROM pay"); ProcessWindow._Form1.FeedBack("Downloading Payments... " + u.Count); foreach (var h in u) { ProcessWindow._Form1.FeedBack("Adding ... " + h.Date.ToString()); Pay c = new Pay(h.Id, h.Date, h.No, h.UserID, h.Method, h.Starts, h.Ends, h.Week, h.Rate, h.Hours, h.Amount, h.OvertimeHrs, h.OvertimeRate, h.OvertimePay, h.Deductions, h.Payment, h.Paid, h.Created, Helper.CompanyID); GenericCollection.pay.Add(c); } ProcessWindow._Form1.FeedBack("Downloading payment complete"); }