public MemberAuction(AuctionCtr auctionCtr)
 {
     InitializeComponent();
     this.auctionCtr = auctionCtr;
     memberCtr = new MemberCtr();
     currentMember = memberCtr.FindMember(idOfDummyMember);
 }
Exemplo n.º 2
0
 public Main()
 {
     InitializeComponent();
     auctionCtr = new AuctionCtr();
     memberAuction = new MemberAuction(auctionCtr);
     startAuction = new StartAuction(auctionCtr);
     startAuction.NextItemChanged += memberAuction.ItemChanged;
 }
        public StartAuction(AuctionCtr auctionCtr)
        {
            InitializeComponent();
            this.auctionCtr = auctionCtr;

            timer.Stop();
            timeLeft = DEFAULTTIMER;
            timer.Interval = 1000;
            timer.Tick += TimerTick;

            txtEditTimer.Text = timeLeft.ToString();

            //Disable/enable knapper
            btnHammerslag.Enabled = false;
            btnNext.Enabled = false;
            btnPause.Enabled = false;
            btnStart.Enabled = false;
            btnOKInterval.Enabled = false;
            btnOKTimer.Enabled = false;
        }
        public void AuctionInitialize()
        {
            ctr = new AuctionCtr();

            List<Member> members = new List<Member>()
            {
                new Member(),
                new Member(),
            };

            List<Item> Items = new List<Item>()
            {
                new Item () {Number = 1245},
                new Item () {Number = 1246},
            };

            auction = new Auction()
            {
                Date = DateTime.Now,
                //Members = members,
                //Items = Items
            };
        }
 public void AuctionCleanUp()
 {
     ctr = null;
     auction = null;
 }