예제 #1
0
 public MainFormPresenter(IIoManager ioManager)
 {
     this.ioManager = ioManager;
     if (ioManager == null)
     {
         throw new ArgumentNullException("ioManager");
     }
 }
        public LauncherPresenter(IIoManager ioManager, ITimeHelper timeHelper, ISettings settings)
        {
            if (ioManager == null) throw new ArgumentNullException("ioManager");
            if (timeHelper == null) throw new ArgumentNullException("timeHelper");
            if (settings == null) throw new ArgumentNullException("settings");

            this.ioManager = ioManager;
            this.timeHelper = timeHelper;
            this.settings = settings;

            timeHelper.CountDownElapsed += TimeHelper_CountDownElapsed;
        }
예제 #3
0
        public MainForm(
            IMainFormPresenter presenter,
            IIoManager ioManager)
        {
            if (presenter == null)
            {
                throw new ArgumentNullException("presenter");
            }
            if (ioManager == null)
            {
                throw new ArgumentNullException("ioManager");
            }
            this.presenter = presenter;
            this.ioManager = ioManager;

            presenter.SetView(this);

            InitializeComponent();
        }
        public LauncherPresenter(IIoManager ioManager, ITimeHelper timeHelper, ISettings settings)
        {
            if (ioManager == null)
            {
                throw new ArgumentNullException("ioManager");
            }
            if (timeHelper == null)
            {
                throw new ArgumentNullException("timeHelper");
            }
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            this.ioManager  = ioManager;
            this.timeHelper = timeHelper;
            this.settings   = settings;

            timeHelper.CountDownElapsed += TimeHelper_CountDownElapsed;
        }