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); } }
private void StopBtnClickedActionHandler(object commandParameter) { EventWatcherViewModel.StopMonitoring(); }