Ejemplo n.º 1
0
		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;
		}
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
		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);
		}
Ejemplo n.º 4
0
        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);
        }