public App(MainDlg dlg, Entrypoints ep) { this.start = ep.Start; dlg.OnFirstPageRequested += ep.Show_first_page; dlg.OnLastPageRequested += ep.Show_last_page; dlg.OnExitRequested += ep.Exit; ep.OnPage += dlg.Display_page; }
public static void Main (string[] args) { // build var dlg = new MainDlg (); var cmd = new CommandlineProvider (); var txt = new TextfileProvider (); var pager = new Pager (); var formatter = new Formatter (); var ep = new Entrypoints (cmd, txt, pager, formatter); var app = new App (dlg, ep); // run app.Start (); var sf = new ShellForms (); sf.Run (dlg); }
public static void Main(string[] args) { // build var dlg = new MainDlg(); var cmd = new CommandlineProvider(); var txt = new TextfileProvider(); var pager = new Pager(); var formatter = new Formatter(); var ep = new Entrypoints(cmd, txt, pager, formatter); var app = new App(dlg, ep); // run app.Start(); var sf = new ShellForms(); sf.Run(dlg); }