Пример #1
0
        private async Task RunProgramLogic()
        {
            while (true)
            {
                BiblioVM vm = new BiblioVM();
                displayRoot.ShowView(vm);
                await Task.Delay(TimeSpan.FromSeconds(2));

                while (true)
                {
                    await Task.Delay(TimeSpan.FromSeconds(2));

                    if (vm.DialogResult != null)
                    {
                        break;
                    }
                }
                displayRoot.HideView(vm);
                break;
            }
        }