public static void Update(AwardDataSet.TmpAwardDataTable award) { using (var dx = new AwardDataSetTableAdapters.TmpAwardTableAdapter()) { dx.Update(award); } }
public static AwardDataSet.TmpAwardDataTable GetAward() { AwardDataSet.TmpAwardDataTable dtAward = null; using (var dx = new AwardDataSetTableAdapters.TmpAwardTableAdapter()) { dtAward = dx.GetData(); } return(dtAward); }
public static AwardMachine BuildAwardMachine() { AwardDataSet.TmpOptionDataTable dtOption = GetOption(); AwardDataSet.TmpTicketDataTable dtTicket = GetTicket(); AwardDataSet.TmpAwardDataTable dtAward = GetAward(); var machine = new AwardMachine(dtOption, dtTicket, dtAward); return(machine); }
public AwardMachine(AwardDataSet.TmpOptionDataTable option, AwardDataSet.TmpTicketDataTable ticket, AwardDataSet.TmpAwardDataTable award) { this.Option = option; this.Ticket = ticket; this.Award = award; this.updateCandidate(); }