public TimerWithSpeech(ChampionPanel parent, ProgBarWithText progBar) { this.championPanelCopy = parent; //initialize time = goal time and decrement. this.time = goalTime; this.Interval = new TimeSpan(0, 0, 1); //every 1 second, a Tick Happens. this.Tick += tickAction; //action to take for every Tick this.parentProgBar = progBar; parentProgBar.SetProgMax(goalTime); //initialize Synth this.synth = new SpeechSynthesizer(); InitializeSynthesizer(); }
public TimerWithSpeech(ChampionPanel parent, ProgBarWithText progBar) { this.championPanelCopy = parent; //initialize time = goal time and decrement. this.time = goalTime; this.Interval = new TimeSpan(0, 0, 1); //every 1 second, a Tick Happens. this.Tick += tickAction;//action to take for every Tick this.parentProgBar = progBar; parentProgBar.SetProgMax(goalTime); //initialize Synth this.synth = new SpeechSynthesizer(); InitializeSynthesizer(); }