Exemplo n.º 1
0
        private void StartBtnClickedActionHandler(object commandParameter)
        {
            try
            {
                if (string.IsNullOrEmpty(MonitoredPath))
                {
                    throw new InvalidPathException("Invalid path was detected, there is no monitored path");
                }

                EventWatcherViewModel.StartMonitoring(MonitoredPath);
            }
            catch (InvalidPathException ex)
            {
                Logger?.Error(ex.Message);
            }
        }
Exemplo n.º 2
0
 private void StopBtnClickedActionHandler(object commandParameter)
 {
     EventWatcherViewModel.StopMonitoring();
 }