Beispiel #1
0
        public FeedbackForm(IDirectoryWatcher watcher, IConfiguration configuration, IRunFeedbackPresenter runPresenter, IInformationForm informationForm, IRunResultCache runResultCache, IMessageBus bus)
        {
            _syncContext = AsyncOperationManager.SynchronizationContext;
            _toolTipProvider.AutoPopDelay = 30000;
            _watcher = watcher;
            _runResultCache = runResultCache;
			_bus = bus;
            _runPresenter = runPresenter;
            _runPresenter.View = this;
            _informationForm = informationForm;
            _informationForm.MessageArrived += new EventHandler<MessageRecievedEventArgs>(_informationForm_MessageArrived);
            InitializeComponent();
            configuration.ValidateSettings();
            readFormSpacing();
			FeedbackForm_Resize(this, new EventArgs());
        }
Beispiel #2
0
 public FeedbackForm(IDirectoryWatcher watcher, IConfiguration configuration, IRunFeedbackPresenter runPresenter, IInformationForm informationForm, IRunResultCache runResultCache, IMessageBus bus, ISendNotifications notifier)
 {
     _syncContext = AsyncOperationManager.SynchronizationContext;
     _toolTipProvider.AutoPopDelay = 30000;
     _watcher           = watcher;
     _configuration     = configuration;
     _runResultCache    = runResultCache;
     _bus               = bus;
     _notifier          = notifier;
     _runPresenter      = runPresenter;
     _runPresenter.View = this;
     _informationForm   = informationForm;
     _informationForm.MessageArrived += new EventHandler <MessageRecievedEventArgs>(_informationForm_MessageArrived);
     InitializeComponent();
     readFormSpacing();
     FeedbackForm_Resize(this, new EventArgs());
 }
Beispiel #3
0
 //User myAccount;
 public GuessPresenter(IInformationForm Information, IRegistrationForm viewRegistration, ILoginForm viewLogin, IMainForm view, IGuessManager manager,
                       IMessageService messageService)
 {
     _viewLogin                  = viewLogin;
     _view                       = view;
     _manager                    = manager;
     _messageService             = messageService;
     _view.VerifyClick          += _view_VerifyClick;
     _view.HalfWordClick        += _view_HalfWordClick;
     _view.FirstLastLetterClick += _view_FirstLastLetterClick;
     _viewLogin.LogIn           += _viewLogin_LogIn;
     _viewRegistration           = viewRegistration;
     _viewRegistration.SignUp   += _viewLogin_SignUp;
     _viewLogin.SignUp          += SignUp;
     _Information                = Information;
     _view.InformationClick     += _view_InformationClick;
     _Information.SaveClick     += _Information_SaveClick;
 }