Skip to content

Commit

Permalink
Bind toast service
Browse files Browse the repository at this point in the history
  • Loading branch information
andburn committed Jul 2, 2018
1 parent 090250d commit b38d1dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts
Submodule Scripts updated 1 files
+2 −2 bootstrap.ps1
2 changes: 2 additions & 0 deletions StatsConverter/StatsConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public StatsConverter()
Events = _kernel.Get<IEventsService>();
Client = _kernel.Get<IGameClientService>();
Config = _kernel.Get<IConfigurationRepository>();
NotificationManager.SetService(_kernel.Get<IToastService>());
// load settings
var assembly = Assembly.GetExecutingAssembly();
var resourceName = "HDT.Plugins.StatsConverter.Resources.Default.ini";
Expand Down Expand Up @@ -187,6 +188,7 @@ private IKernel GetKernel()
kernel.Bind<IGameClientService>().To<TrackerClientService>().InSingletonScope();
kernel.Bind<IConfigurationRepository>().To<TrackerConfigRepository>().InSingletonScope();
kernel.Bind<ISlidePanel>().To<MetroSlidePanel>();
kernel.Bind<IToastService>().To<TrackerToastService>();
return kernel;
}

Expand Down

0 comments on commit b38d1dd

Please sign in to comment.