Пример #1
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);
		}
Пример #2
0
		public Entrypoints(CommandlineProvider cmd, TextfileProvider txt, Pager pager, Formatter formatter) {
			this.formatter = formatter;
			this.pager = pager;
			this.txt = txt;
			this.cmd = cmd;
		}