public AwardMachine(AwardDataSet.TmpOptionDataTable option, AwardDataSet.TmpTicketDataTable ticket, AwardDataSet.TmpAwardDataTable award) { this.Option = option; this.Ticket = ticket; this.Award = award; this.updateCandidate(); }
public static AwardDataSet.TmpOptionDataTable GetOption() { AwardDataSet.TmpOptionDataTable dtOption = null; using (var dx = new AwardDataSetTableAdapters.TmpOptionTableAdapter()) { dtOption = dx.GetData(); } return(dtOption); }
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); }