public override void Initialize() { #if DEBUG InitLogging(); if (Globals.IsWindows()) { ConsoleAllocator.ShowConsoleWindow(); } #endif AvaloniaXamlLoader.Load(this); }
public static int Main(string[] args) { if (args.Length != 0) { ConsoleAllocator.ShowConsoleWindow(); } // run windowed App app = new App(); app.InitializeComponent(); app.Run(); return(0); }