Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public AuditLogViewModel(TrackerParameters parameters)
 {
     SqlDialogViewModelViewModel = new SqlDialogViewModel();
     SearchFilter = string.Empty;
     Parameters   = parameters;
     ReloadAuditRecords(Parameters);
 }
Esempio n. 3
0
 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);
        }
Esempio n. 5
0
        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));
        }