Пример #1
0
		public static void Main (string[] args)
		{
			var sf = new ShellForms ();

			// build
			var ui = new MainWindow (sf);
			var clock = new Clock ();

			// bind
			clock.OnClockTick += ui.Display_time;

			// run
			using (clock) {
				clock.Start ();
				sf.Run (ui);
			};
		}
Пример #2
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);
		}