Exemple #1
0
        private async void Run()
        {
            Global.Reallocate();

            TknSrc = new CancellationTokenSource();
            Global.Instance.Tkn = TknSrc.Token;

            runner = new Task(() => Step.Runner(), Global.Instance.Tkn);
            runner.Start();

            await runner;

            Global.Instance.readyList.Sort();

            //render form
            var play = new Player();

            player = new Task(() => play.Runner(), Global.Instance.Tkn);
            player.Start();

            await Task.Delay(1);

            var form = new Form2();

            display = new Task(() => form.Runner(), Global.Instance.Tkn);
            display.Start();

            await Task.Delay(1);
        }