Esempio n. 1
0
        public TipViewModel(RestService reset,
                            SoundService sound,
                            ConfigService config,
                            StatisticService statistic,
                            MainService main,
                            App app,
                            KeyboardShortcutsService keyboardShortcuts,
                            PreAlertService preAlert,
                            ThemeService theme)
        {
            this.reset                = reset;
            this.reset.TimeChanged   += new RestEventHandler(timeChanged);
            this.reset.RestCompleted += new RestEventHandler(resetCompleted);

            this.sound           = sound;
            this.config          = config;
            this.config.Changed += config_Changed;


            resetCommand = new Command(new Action <object>(resetCommand_action));
            busyCommand  = new Command(new Action <object>(busyCommand_action));

            this.statistic = statistic;

            this.main = main;
            this.keyboardShortcuts = keyboardShortcuts;
            this.preAlert          = preAlert;
            this.theme             = theme;
            theme.OnChangedTheme  += Theme_OnChangedTheme;
            ChangedEvent          += TipViewModel_ChangedEvent;
            LoadConfig();
        }