52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Ooui;
|
|
using Tesses.WebServer;
|
|
|
|
namespace Samples
|
|
{
|
|
class Program
|
|
{
|
|
static void Main (string[] args)
|
|
{
|
|
Xamarin.Forms.PageExtensions.Ui=new UI();
|
|
|
|
Xamarin.Forms.Forms.Init ();
|
|
|
|
|
|
var samples = new List<ISample>
|
|
{
|
|
new EntryListViewSample(),
|
|
new ButtonSample (),
|
|
new TodoSample (),
|
|
new DrawSample (),
|
|
new FilesSample(),
|
|
new DisplayAlertSample (),
|
|
new DotMatrixClockSample(),
|
|
new EditorSample(),
|
|
new MonkeysSample(),
|
|
new BugSweeperSample(),
|
|
new RefreshListViewSample (),
|
|
new SearchBarSample(),
|
|
new SliderSample(),
|
|
new SwitchListViewSample(),
|
|
new TimePickerSample(),
|
|
new TipCalcSample(),
|
|
new WeatherAppSample(),
|
|
new XuzzleSample(),
|
|
new WebViewSample(),
|
|
new PickerSample(),
|
|
};
|
|
|
|
foreach (var sample in samples)
|
|
{
|
|
sample.Publish();
|
|
}
|
|
|
|
var samplePage = new SamplePicker(samples);
|
|
samplePage.Publish();
|
|
Xamarin.Forms.PageExtensions.Ui.StartServer(42520);
|
|
}
|
|
}
|
|
}
|