Exemple #1
0
        /// <summary>
        /// NotifyIconWrapper クラス を生成、初期化します。
        /// </summary>
        public NotifyIconWrapper()
        {
            // コンポーネントの初期化
            InitializeComponent();

            // タイマーのインスタンスを生成
            _timeInterval = new TimeInterval();
            _timeInterval.LoadJson();
            _pomodoroTime = new PomodoroTimer(_timeInterval);
            _pomodoroTime.PomodoroTimerTickEventHandler += new PomodoroTimer.TimerTickEventHandler(CallBackEventProgress);

            // Window の初期化
            _settingsVM    = new SettingsVM(_timeInterval);
            _endPomodoroVM = new EndPomodoroVM(_pomodoroTime);
            _taskListVM    = new TaskListVM();

            // コンテキストメニューのイベントを設定
            this.toolStripMenuItem_Exit.Click      += this.toolStripMenuItem_Exit_Click;
            this.toolStripMenuItem_Start.Click     += this.toolStripMenuItem_Start_Click;
            this.toolStripMenuItem_Break.Click     += this.toolStripMenuItem_Break_Click;
            this.toolStripMenuItem_LongBreak.Click += this.toolStripMenuItem_LongBreak_Click;
            this.toolStripMenuItem_Settings.Click  += this.toolStripMenuItem_Settings_Click;
            this.toolStripMenuItem_TaskEdit.Click  += this.toolStripMenuItem_TaskEdit_Click;

            // TextBox の初期化
            toolStripMenuItem_TimeText.Text = "00:00";
        }
Exemple #2
0
 public EndPomodoroVM(PomodoroTimer pomodoroTimer)
     : base(Messenger.Default)
 {
     _emMode        = Em_Mode.Stop;
     _pomodoroTimer = pomodoroTimer;
     _pomodoroTimer.PropertyChanged   += EmMode_PropertyChanged;
     PushedPomodoroActionButtonCommand = new PomodoroActionCommand(_pomodoroTimer);
 }
Exemple #3
0
 public PomodoroActionCommand(PomodoroTimer pomodoroTimer)
 {
     _pomodoroTimer = pomodoroTimer;
 }
 /// <summary>
 /// Конструтоктор состояния работы
 /// </summary>
 /// <param name="_pomodoroTimer">Таймеры</param>
 public PlayState(PomodoroTimer _pomodoroTimer)
 {
     pomodoroTimer = _pomodoroTimer;
 }
Exemple #5
0
        public PomodoroForm()
        {
            InitializeComponent();

            _p = new PomodoroTimer();
        }
Exemple #6
0
 public Presenter(IPomodoroView view)
 {
     this.view = view;
     timer = new PomodoroTimer();
     timer.TimerTicked += Timer_TimerTicked;
 }
 /// <summary>
 /// Конструтоктор состояния остановки
 /// </summary>
 /// <param name="_pomodoroTimer">Таймеры</param>
 public StopState(PomodoroTimer _pomodoroTimer)
 {
     pomodoroTimer = _pomodoroTimer;
 }