Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }