Formatting only, no behavior change. Produced mechanically: - dotnet format on the solution (3-space indent, Allman braces, `if(`, usings, `var`, System.Threading.Lock); the linked samples/Shared file is formatted through one project, because formatting it through both writes conflict markers into it. - Kingsrook blank lines the .NET formatter cannot express (K22-CODE-06, K22-CODE-CS-03): three blank lines around methods, constructors, types, and multi-line properties; at most one blank line inside code blocks and between single-line members; two after the using list. Applied with a Roslyn rewriter equivalent to Rider's resharper_blank_lines_* keys. - XML-family files (.csproj, .props, .slnx, .xaml, manifests, .runsettings) re-indented to three spaces. - git add --renormalize: every text file is stored with LF. Listed in .git-blame-ignore-revs so git blame skips it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: James Maes <james@kof22.com>
29 lines
818 B
C#
29 lines
818 B
C#
using System.Windows;
|
|
using KofTwentyTwo.AppKit.Logging;
|
|
using KofTwentyTwo.AppKit.Updates;
|
|
using KofTwentyTwo.AppKit.Wpf;
|
|
|
|
|
|
namespace AppKit.Sample.Wpf;
|
|
|
|
/// <summary>Entry point: Velopack hooks first, then the WPF application.</summary>
|
|
public static class Program
|
|
{
|
|
/// <summary>The app-wide activity log.</summary>
|
|
internal static IActivityLog Log { get; } = FileActivityLog.ForApp(SampleApp.Info, SampleApp.Paths);
|
|
|
|
|
|
|
|
[STAThread]
|
|
private static void Main()
|
|
{
|
|
VelopackStartup.Run();
|
|
|
|
var app = new Application { ShutdownMode = ShutdownMode.OnMainWindowClose };
|
|
WpfShell.InstallCrashNet(app, () => Log);
|
|
WpfShell.ApplyTheme(app, SampleApp.SettingsStore.Load().ThemeKind);
|
|
Log.Info($"{SampleApp.Info.DisplayName} (WPF) started.");
|
|
app.Run(new MainWindow());
|
|
}
|
|
}
|