public MainForm() { InitializeComponent(); openTime = DateTime.Now; config = new Config(DB_PATH); config.ReadDB(); persons = new PersonCollection(DB_PATH); persons.ReadDB(); prizes = new PrizeCollection(DB_PATH); // winprizes = new WinPrizeCollection(DB_PATH); // winprizes.ReadDB(openTime); imdb = new ImageDB(); }
public DrawPrizeForm(PersonCollection persons, Config config, PrizeCollection prizes, ImageDB imgdb, DateTime filterTime, int drawType) { InitializeComponent(); this.config = config; this.persons = persons; this.prizes = prizes; this.imdb = imgdb; this.drawType = drawType; openTime = filterTime; wps = new WinPrizeCollection(config.Connstr); wps.ReadDB(openTime); noprizePersons = new PersonDrawCollection(); RefreshDrawPerson(); }
public PrizeSetForm(PrizeCollection prizes) { InitializeComponent(); this.prizes = prizes; }