public SpeakingProjectMonitor (IProjectMonitor monitor, IBalloonMessageProvider balloonMessageProvider, SpeechConfiguration configuration) {
        	this.monitor = monitor;
        	this.balloonMessageProvider = balloonMessageProvider;

			if (configuration != null && configuration.Enabled)
			{
				speakBuildSucceded = configuration.SpeakBuildSucceded;
				speakBuildFailed = configuration.SpeakBuildFailed;
				
				if (speakBuildSucceded || speakBuildFailed) {
					monitor.BuildOccurred += new MonitorBuildOccurredEventHandler(Monitor_BuildOccurred);
				}
				if (configuration.SpeakBuildStarted) {
					monitor.Polled += new MonitorPolledEventHandler(Monitor_Polled);
				}
			}
        }
Exemple #2
0
        public SpeakingProjectMonitor(IProjectMonitor monitor, IBalloonMessageProvider balloonMessageProvider, SpeechConfiguration configuration)
        {
            this.monitor = monitor;
            this.balloonMessageProvider = balloonMessageProvider;

            if (configuration != null && configuration.Enabled)
            {
                speakBuildSucceded = configuration.SpeakBuildSucceded;
                speakBuildFailed   = configuration.SpeakBuildFailed;

                if (speakBuildSucceded || speakBuildFailed)
                {
                    monitor.BuildOccurred += new MonitorBuildOccurredEventHandler(Monitor_BuildOccurred);
                }
                if (configuration.SpeakBuildStarted)
                {
                    monitor.Polled += new MonitorPolledEventHandler(Monitor_Polled);
                }
            }
        }