public void InitializeTests()
 {
     if(_memoryGraphicsContextFactory == null)
         throw new NullReferenceException("MemoryGraphicsContextFactory is null!");
                 
     InitializeBass();
     _peakFileService = new PeakFileService();
     RenderingService = new WaveFormRenderingService(_peakFileService, _memoryGraphicsContextFactory);
 }
示例#2
0
        public WaveFormRenderingService(IPeakFileService peakFileService, IMemoryGraphicsContextFactory memoryGraphicsContextFactory)
        {
            _peakFileService = peakFileService;
            _memoryGraphicsContextFactory = memoryGraphicsContextFactory;
            _peakFileService.OnProcessStarted += HandleOnPeakFileProcessStarted;
            _peakFileService.OnProcessData += HandleOnPeakFileProcessData;
            _peakFileService.OnProcessDone += HandleOnPeakFileProcessDone;

            CreateDrawingResources();
        }