Example #1
0
        private void PushUpdatesIntoProject()
        {
            _projectModel.NBins     = _model.NBins;
            _projectModel.NDirs     = _model.NDirs;
            _projectModel.Latitude  = _model.FilterLatitude;
            _projectModel.Longitude = _model.FilterLongitude;

            _projectModel.FreqByBins.Clear();
            _projectModel.FreqByBins.AddRange(_model.FreqByBins);

            _projectModel.FreqByDirs.Clear();
            _projectModel.FreqByDirs.AddRange(_model.FreqByDirs);

            _projectModel.VelocityFreq.Clear();
            _projectModel.VelocityFreq.AddRange(_model.VelocityFreq);

            _projectModel.MeanVelocityPerDir.Clear();
            _projectModel.MeanVelocityPerDir.AddRange(_model.MeanVelocityPerDir);

            _projectModel.NotifyTargets(ProductTargets.WindRose);
            _projectModel.NotifyTargets(ProductTargets.Histogram);
        }
Example #2
0
 private void PushUpdatesIntoProjectModel(double longitude, double latitude)
 {
     _projectModel.Longitude = (decimal)longitude;
     _projectModel.Latitude  = (decimal)latitude;
     _projectModel.NotifyTargets(ProductTargets.DataImporter);
 }