﻿using System;
using Ooui;

namespace Samples
{
    class Program
    {
        static void Main (string[] args)
        {
            new ButtonSample ().Publish ();
            new TodoSample ().Publish ();

            Console.ReadLine ();
        }
    }
}

﻿using System;
using Ooui;

namespace Samples
{
    class Program
    {
        static void Main (string[] args)
        {
            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;
                }
            }

            new ButtonSample ().Publish ();
            new TodoSample ().Publish ();

            Console.ReadLine ();
        }
    }
}

Add --port option to samples
Add --port option to samples

Fixes #6
