Example #1
0
 public SaveTransHelper(ITSalesRepository tSalesRepository, ITSalesDetRepository tSalesDetRepository, IMGameRepository mGameRepository, IMAgentRepository mAgentRepository, ITMsgRepository tMsgRepository)
 {
     _tSalesRepository    = tSalesRepository;
     _tSalesDetRepository = tSalesDetRepository;
     _mGameRepository     = mGameRepository;
     _mAgentRepository    = mAgentRepository;
     _tMsgRepository      = tMsgRepository;
 }
Example #2
0
 public Form1(ITSalesRepository tSalesRepository, ITSalesDetRepository tSalesDetRepository, IMGameRepository mGameRepository, IMAgentRepository mAgentRepository, ITMsgRepository tMsgRepository)
 {
     _tSalesRepository    = tSalesRepository;
     _tSalesDetRepository = tSalesDetRepository;
     _mGameRepository     = mGameRepository;
     _mAgentRepository    = mAgentRepository;
     _tMsgRepository      = tMsgRepository;
     InitializeComponent();
 }
Example #3
0
        public ReportController(IMAgentRepository mAgentRepository, ITSalesDetRepository tSalesDetRepository, IMGameRepository mGameRepository)
        {
            Check.Require(mAgentRepository != null, "mAgentRepository may not be null");
            Check.Require(tSalesDetRepository != null, "tSalesDetRepository may not be null");
            Check.Require(mGameRepository != null, "mGameRepository may not be null");

            this._mAgentRepository    = mAgentRepository;
            this._tSalesDetRepository = tSalesDetRepository;
            this._mGameRepository     = mGameRepository;
        }
Example #4
0
        public FormServerMain(ITSalesRepository tSalesRepository, ITSalesDetRepository tSalesDetRepository, IMGameRepository mGameRepository, IMAgentRepository mAgentRepository, ITMsgRepository tMsgRepository)
        {
            _tSalesRepository    = tSalesRepository;
            _tSalesDetRepository = tSalesDetRepository;
            _mGameRepository     = mGameRepository;
            _mAgentRepository    = mAgentRepository;
            _tMsgRepository      = tMsgRepository;
            InitializeComponent();

            btnStart.Click += new EventHandler(btnStart_Click);
            btnEnd.Click   += new EventHandler(btnEnd_Click);
            timer1.Tick    += new EventHandler(timer1_Tick);
        }