public MainWindow() { var errorManager = (IErrorManager)GUIErrorManager.GetInstance(); Lookup.GetInstance().Register(typeof(IErrorManager), errorManager); InitializeComponent(); }
public static IErrorManager GetInstance() { return(_instance ?? (_instance = new GUIErrorManager())); }