static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ITextRepository textRepo = new TxtRepository(); var form1 = new Form1(); var presenter = new Form1Presenter(form1, textRepo); form1.SetPresenter(presenter); Application.Run(form1); }
public Form1(IPersonRepository personManager) { InitializeComponent(); presenter = new Form1Presenter(this, personManager); }