Пример #1
0
        public void Calculate()
        {
            if (data == null)
                throw new ArgumentNullException("data", "Need execute FetchData() first.");

            var result = (calc ?? (calc = new Calculator()))
                .Calculate(data, CalculationType, CalculationTimeType, ExcludeDoctorsWithotPacients, ExcludePacientsWithoutMeasurements);

            foreach (var res in result)
                AnalysisModule.MessageBus.Instance.PublishResult(res);
        }
Пример #2
0
 public void Initialization()
 {
     Calc = new Calculator();
 }