public void Setup() { var serviceProvider = DependencyResolver.GetServices().BuildServiceProvider(); encoder = serviceProvider.GetRequiredService <INearLosslessPredictiveEncoder>(); decoder = serviceProvider.GetRequiredService <INearLosslessPredictiveDecoder>(); filepathSource = $"{Environment.CurrentDirectory}\\temp.bmp"; filepathEncodedFile = $"{Environment.CurrentDirectory}\\temp.bmp.pre"; filepathDecodedFile = $"{Environment.CurrentDirectory}\\temp.png.pre.bmp"; }
public NearLosslessPredictorUserControl() { InitializeComponent(); InitializePredictorTypesRadioButtonsDictionary(); InitializeSaveModesRadioButtonsDictionary(); InitializeHistogramArea(); var serviceProvider = DependencyResolver.GetServices().BuildServiceProvider(); nearLosslessPredictiveEncoder = serviceProvider.GetRequiredService <INearLosslessPredictiveEncoder>(); nearLosslessPredictiveDecoder = serviceProvider.GetRequiredService <INearLosslessPredictiveDecoder>(); }