Пример #1
0
        public SearcherWindow()
        {
            InitializeComponent();
            searcherGrid.Background = new SolidColorBrush(Color.FromRgb(118, 227, 131));
            searcherImg.Source      = new BitmapImage(new Uri(System.IO.Path.GetFullPath("..\\..\\Resources\\laborant_2.png")));

            Classes.Timer timer = new Classes.Timer();
            timer.StartTimer(this);
        }
        public MainPageViewModel()
        {
            _palavrasReservadasRepositorio = DependencyService.Get <IPalavrasReservadasRepositorio>();
            Itens = _palavrasReservadasRepositorio.ObterPalavrasReservadas().ToObservableCollection();

            StartCommand = new Command(Start);
            PauseCommand = new Command(Pause);
            StopCommand  = new Command(Stop);

            _timer        = new Classes.Timer(TimeSpan.FromSeconds(1), CountDown);
            _totalSeconds = new TimeSpan(0, 5, 0);
            _startVisivel = true;
        }