Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrts authored Sep 24, 2019
1 parent 302e6ff commit 7470a9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions WinFormsMVP/WinFormsMVP/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ private static void Main()
var repository = new Model.CustomerXmlRepository(Application.StartupPath);
var view = new View.CustomerForm();

// TODO: IOC
// Poor Man's Dependency Injection/Pure Dependency Injection, Main() is the Composition Root.
// See https://github.com/mrts/winforms-mvp/issues/2.
var presenter = new Presenter.CustomerPresenter(view, repository);

Application.Run(view);
}
}
}
}

0 comments on commit 7470a9e

Please sign in to comment.