Dirkster99 / Edi

Edi - The open source text editor IDE based on AvalonDock and AvalonEdit

Home Page:https://dirkster99.github.io/Edi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edi.Core.StaticServices

Dirkster99 opened this issue · comments

Some classes like UserControls cannot be initialized with Dependency Injection via Constructor since they require per framework a parameterless constructor. The project, therefore, contains a static class definition to support MessageBox servicing in:
- static methods and
- classes that cannot have constructur injection (eg UserControl)

1.1 - Is there a better solution for this using Windsor.Castler?
1.2 - Can the static class and the initializer in
      Edi.Installers reference the same MessageBox instance?

https://github.com/Dirkster99/Edi/blob/master/Edi/Edi.Core/StaticServices.cs