2017-06-18 23:50:22 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Ooui;
|
|
|
|
|
|
|
|
|
|
namespace Samples
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main (string[] args)
|
|
|
|
|
{
|
2017-11-10 17:57:45 +00:00
|
|
|
|
Xamarin.Forms.Forms.Init ();
|
|
|
|
|
|
2017-06-19 01:42:28 +00:00
|
|
|
|
for (var i = 0; i < args.Length; i++) {
|
|
|
|
|
var a = args[i];
|
|
|
|
|
switch (args[i]) {
|
|
|
|
|
case "-p" when i + 1 < args.Length:
|
|
|
|
|
case "--port" when i + 1 < args.Length:
|
|
|
|
|
{
|
|
|
|
|
int p;
|
|
|
|
|
if (int.TryParse (args[i + 1], out p)) {
|
|
|
|
|
UI.Port = p;
|
|
|
|
|
}
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-05 12:10:57 +00:00
|
|
|
|
new EntryListViewSample().Publish();
|
2017-11-17 23:17:22 +00:00
|
|
|
|
new ButtonSample ().Publish ();
|
2017-11-17 23:16:12 +00:00
|
|
|
|
new TodoSample ().Publish ();
|
|
|
|
|
new DrawSample ().Publish ();
|
|
|
|
|
new FilesSample ().Publish ();
|
|
|
|
|
new DisplayAlertSample ().Publish ();
|
2017-12-12 20:31:15 +00:00
|
|
|
|
new DotMatrixClockSample().Publish();
|
2017-11-26 17:28:47 +00:00
|
|
|
|
new EditorSample().Publish();
|
2018-01-05 12:10:57 +00:00
|
|
|
|
new MonkeysSample().Publish();
|
2017-12-27 10:48:58 +00:00
|
|
|
|
new SearchBarSample().Publish();
|
2017-12-29 11:55:47 +00:00
|
|
|
|
new SliderSample().Publish();
|
2018-01-05 12:10:57 +00:00
|
|
|
|
new SwitchListViewSample().Publish();
|
2017-12-16 12:06:34 +00:00
|
|
|
|
new TimePickerSample().Publish();
|
2017-12-12 20:25:56 +00:00
|
|
|
|
new TipCalcSample().Publish();
|
2017-12-12 20:43:38 +00:00
|
|
|
|
new WeatherAppSample().Publish();
|
2017-12-12 20:22:13 +00:00
|
|
|
|
new XuzzleSample().Publish();
|
2017-06-18 23:50:22 +00:00
|
|
|
|
|
2017-11-17 23:16:12 +00:00
|
|
|
|
UI.Present ("/display-alert");
|
2017-07-06 22:39:44 +00:00
|
|
|
|
|
2017-06-18 23:50:22 +00:00
|
|
|
|
Console.ReadLine ();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|