public LocationSetForm(Config config, ImageDB imgdb) { this.config = config; imdb = imgdb; tconfig = new Config(""); tconfig.colorStr = config.colorStr; tconfig.isAutoMaskLocation = config.isAutoMaskLocation; tconfig.isDrawMask = config.isDrawMask; tconfig.maskX = config.maskX; tconfig.maskY = config.maskY; tconfig.maskW = config.maskW; tconfig.maskH = config.maskH; tconfig.tX = config.tX; tconfig.tY = config.tY; tconfig.tFont.colorStr = config.tFont.colorStr; tconfig.tFont.family = config.tFont.family; tconfig.tFont.size = config.tFont.size; tconfig.mFont.colorStr = config.mFont.colorStr; tconfig.mFont.family = config.mFont.family; tconfig.mFont.size = config.mFont.size; InitializeComponent(); }
public PaintNameView(Rectangle scrRect, Rectangle maskRect, Config config, ImageDB img, PersonDrawCollection persons) : base(scrRect, maskRect, config, img, persons) { nameRects = new List <Rectangle>(); interval = 1; curInterval = 1; curShowItem = -1; }
public PaintViewBase(Rectangle scrRect, Rectangle maskRect, Config config, ImageDB img, PersonDrawCollection persons) { this.persons = persons; this.screenRect = new Rectangle(scrRect.X, scrRect.Y, scrRect.Width, scrRect.Height); this.maskRect = new Rectangle(maskRect.X, maskRect.Y, maskRect.Width, maskRect.Height); this.config = config; this.imgdb = img; interval = 1; curInterval = 1; }
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(); }