~ruther/NosTale-PacketLogger

ref: 4d6087e1bd00b4880cd83790ca7fc71f34986bfe NosTale-PacketLogger/src/PacketLogger/Program.cs -rw-r--r-- 1.1 KiB
4d6087e1 — František Boháček chore: add packetlogger folder structure 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
//  Program.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using Avalonia;
using Avalonia.Media;
using Avalonia.ReactiveUI;
using Projektanker.Icons.Avalonia;
using Projektanker.Icons.Avalonia.MaterialDesign;

namespace PacketLogger;

/// <summary>
/// Application entrypoint class.
/// </summary>
public class Program
{
    /// <summary>
    /// Application entrypoint.
    /// </summary>
    /// <param name="args">The CLI arguments.</param>
    [STAThread]
    public static void Main(string[] args)
        => BuildAvaloniaApp()
            .StartWithClassicDesktopLifetime(args);

    /// <summary>
    /// Build the Avalonia app.
    /// </summary>
    /// <returns>The app builder.</returns>
    public static AppBuilder BuildAvaloniaApp()
        => AppBuilder.Configure<App>()
            .UsePlatformDetect()
            .LogToTrace()
            .UseReactiveUI()
            .WithIcons(c => c.Register<MaterialDesignIconProvider>())
            .With(new FontManagerOptions() { DefaultFamilyName = "Arial" });
}
Do not follow this link