private void CheckBoxTakeSnapshots_Checked(object sender, RoutedEventArgs e) { if (CheckBoxTakeSnapshots.IsChecked == true) { RobotController.EnableSnapshotMode(System.IO.Path.Combine(Directory.GetCurrentDirectory(), _snapshotDirectory)); } else { RobotController.DisableSnapshotMode(); } }