/// <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"; }
public EndPomodoroWindow(EndPomodoroVM endPomodoroVM) { InitializeComponent(); PomodoroEndMessage.DataContext = endPomodoroVM; }