internal AlarmData(DataFile df, MultiAudioPlayer map) : base(df, map)
        {
            IsUnsavedLocked = true;

            CurrentDateTime = DateTime.Now;
            ResetToValue    = DateTime.Now;

            IsUnsavedLocked = false;
        }
Exemple #2
0
        internal ClockM(DataFile df, MultiAudioPlayer map)
        {
            MyTimerViews = new List <IClockView>();

            MultiAudioPlayer = map;
            MyDataFile       = df;

            // ringing timer
            t2       = new System.Windows.Threading.DispatcherTimer(System.Windows.Threading.DispatcherPriority.Send);
            t2.Tick += T2_Tick;

            MyToggleCommand = new RelayCommand(OnToggle);
            MyDeleteCommand = new RelayCommand(OnDelete);
        }
Exemple #3
0
        internal TimerData(DataFile df, MultiAudioPlayer map) : base(df, map)
        {
            // second by second timer
            FormsTimer = new DispatcherTimer(DispatcherPriority.Send)
            {
                Interval = TimeSpan.FromSeconds(1)
            };
            FormsTimer.Tick += T_Tick;

            IsUnsavedLocked = true;

            CurrentTimeSpan = TimeSpan.Zero;
            ResetToValue    = TimeSpan.Zero;

            IsUnsavedLocked = false;
        }