Esempio n. 1
0
        public Pomodo7oWindow(ITaskbarManager taskbarManager, ViewModel viewModel)
        {
            _taskbarManager = taskbarManager;
            _viewModel      = viewModel;
            DataContext     = viewModel;

            InitializeComponent();

            _btnReset    = Button(Res.icon_reset, Res.ToolTip_Reset, () => Reset());
            _btnPlay     = Button(Res.icon_play, Res.ToolTip_Play, () => Play());
            _btnPause    = Button(Res.icon_pause, Res.ToolTip_Pause, () => Pause());
            _btnGoToWork = Button(Res.icon_tomato, Res.ToolTip_GoToWork, () => GoToWork());
            _btnGoToRest = Button(Res.icon_tomato_rest, Res.ToolTip_GoToRest, () => TakeABreak());
        }
Esempio n. 2
0
        public Pomodo7oWindow(ITaskbarManager taskbarManager, ViewModel viewModel)
        {
            _taskbarManager = taskbarManager;
            _viewModel = viewModel;
            DataContext = viewModel;

            InitializeComponent();

            _btnReset = Button(Res.icon_reset, Res.ToolTip_Reset, () => Reset());
            _btnPlay = Button(Res.icon_play, Res.ToolTip_Play, () => Play());
            _btnPause = Button(Res.icon_pause, Res.ToolTip_Pause, () => Pause());
            _btnGoToWork = Button(Res.icon_tomato, Res.ToolTip_GoToWork, () => GoToWork());
            _btnGoToRest = Button(Res.icon_tomato_rest, Res.ToolTip_GoToRest, () => TakeABreak());
        }
Esempio n. 3
0
 public TaskbarProgressBar(ITaskbarManager manager, Pomodo7oWindow handle)
 {
     _manager = manager;
     _handle  = handle;
 }
 public TaskbarProgressBar(ITaskbarManager manager, Pomodo7oWindow handle)
 {
     _manager = manager;
     _handle = handle;
 }