Files
YMhut-box-C-/参考/wpfui-main/samples/Wpf.Ui.Demo.Console/Program.cs
T
2026-07-06 23:05:40 +08:00

34 lines
904 B
C#

// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
using System.Diagnostics;
public static class Program
{
[STAThread]
public static void Main(string[] args)
{
Debug.WriteLine("Args: " + string.Join(", ", args));
if (Application.Current is null)
{
Console.WriteLine("Application.Current is null.");
}
try
{
_ = new Wpf.Ui.Demo.Console.Views.SimpleView().ShowDialog();
_ = new Wpf.Ui.Demo.Console.Views.MainView().ShowDialog();
}
catch (Exception ex)
{
Console.WriteLine(ex);
Thread.Sleep(10000);
throw;
}
}
}