Exemplo 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());
        }
Exemplo 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());
        }
Exemplo n.º 3
0
 public TaskbarProgressBar(ITaskbarManager manager, Pomodo7oWindow handle)
 {
     _manager = manager;
     _handle  = handle;
 }
Exemplo n.º 4
0
 public TaskbarProgressBar(ITaskbarManager manager, Pomodo7oWindow handle)
 {
     _manager = manager;
     _handle = handle;
 }