예제 #1
0
        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;
        }
예제 #2
0
        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();
        }
예제 #3
0
 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;
 }
예제 #4
0
 public virtual void SetPersons(PersonDrawCollection persons)
 {
     this.persons = persons;
 }