public void SetParams(TrackerParameters param) { param.ApplicationName = "digiCamControl"; param.ApplicationVersion = _applicationVersion; param.ScreenResolution = new Size((int)System.Windows.SystemParameters.PrimaryScreenWidth, (int)System.Windows.SystemParameters.PrimaryScreenHeight); param.UserLanguage = ServiceProvider.Settings.SelectedLanguage; }
public AuditLogViewModel(TrackerParameters parameters) { SqlDialogViewModelViewModel = new SqlDialogViewModel(); SearchFilter = string.Empty; Parameters = parameters; ReloadAuditRecords(Parameters); }
public AuditLogViewModel() { SqlDialogViewModelViewModel = new SqlDialogViewModel(); SearchFilter = string.Empty; Parameters = new TrackerParameters { SelectedDeveloper = null, MinimumDateTime = DateTime.Today.AddDays(-21) }; ReloadAuditRecords(Parameters); }
public TrackerParameters Clone() { TrackerParameters trackerParameters = new TrackerParameters(); trackerParameters.numLastPositionsToTrack = numLastPositionsToTrack; trackerParameters.numStepsToWaitBeforeFirstShow = numStepsToWaitBeforeFirstShow; trackerParameters.numStepsToTrackWithoutDetectingIfObjectHasNotBeenShown = numStepsToTrackWithoutDetectingIfObjectHasNotBeenShown; trackerParameters.numStepsToShowWithoutDetecting = numStepsToShowWithoutDetecting; trackerParameters.maxTrackLifetime = maxTrackLifetime; trackerParameters.coeffObjectSpeedUsingInPrediction = coeffObjectSpeedUsingInPrediction; trackerParameters.coeffRectangleOverlap = coeffRectangleOverlap; return(trackerParameters); }
public void ReloadAuditRecords(TrackerParameters parameters) { var records = new ObservableCollection <AuditRecord>(); if (Parameters.IsDeveloperSelected) { if (Parameters.MinimumDateTime != null) { records.AddRange(_auditLogRepository.GetDdlAudits(Parameters.MinimumDateTime.Value, Parameters.SelectedDeveloper.DomainUserName)); } } else { if (Parameters.MinimumDateTime != null) { records.AddRange(_auditLogRepository.GetDdlAudits(Parameters.MinimumDateTime.Value)); } } AuditLogRecords = new ObservableCollection <AuditRecord>(records.OrderByDescending(x => x.PostDateTime)); }