mirror of
https://github.com/cyanfish/naps2.git
synced 2024-11-11 02:45:19 +03:00
27 lines
784 B
C#
27 lines
784 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using NAPS2.Images.Storage;
|
|
using NAPS2.Operation;
|
|
using NAPS2.Remoting.Worker;
|
|
using NAPS2.Util;
|
|
using NAPS2.WinForms;
|
|
using Ninject;
|
|
using Ninject.Modules;
|
|
|
|
namespace NAPS2.Modules
|
|
{
|
|
public class StaticDefaultsModule : NinjectModule
|
|
{
|
|
public override void Load()
|
|
{
|
|
OperationProgress.Default = Kernel.Get<OperationProgress>();
|
|
ErrorOutput.Default = Kernel.Get<MessageBoxErrorOutput>();
|
|
DialogHelper.Default = Kernel.Get<DialogHelper>();
|
|
OverwritePrompt.Default = Kernel.Get<OverwritePrompt>();
|
|
ImageContext.Default = Kernel.Get<ImageContext>();
|
|
WorkerFactory.Default = Kernel.Get<IWorkerFactory>();
|
|
}
|
|
}
|
|
}
|