Skip to content

Commit 2ff45c2

Browse files
committed
chore: ran dotnet format
1 parent 45928b9 commit 2ff45c2

File tree

3 files changed

+222
-222
lines changed

3 files changed

+222
-222
lines changed
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
using Application = Microsoft.UI.Xaml.Application;
1+
using Application = Microsoft.UI.Xaml.Application;
22

33
namespace SimpleCalculator;
44

55
public class App : Application
66
{
7-
public static Window? _window;
7+
public static Window? _window;
88

9-
protected override void OnLaunched(LaunchActivatedEventArgs args)
10-
{
9+
protected override void OnLaunched(LaunchActivatedEventArgs args)
10+
{
1111
#if NET6_0_OR_GREATER && WINDOWS && !HAS_UNO
1212
_window = new Window();
1313
#else
14-
_window = Microsoft.UI.Xaml.Window.Current;
14+
_window = Microsoft.UI.Xaml.Window.Current;
1515
#endif
1616

17-
// Do not repeat app initialization when the Window already has content,
18-
// just ensure that the window is active
19-
if (_window.Content is not Frame rootFrame)
20-
{
21-
// Create a Frame to act as the navigation context and navigate to the first page
22-
rootFrame = new Frame();
17+
// Do not repeat app initialization when the Window already has content,
18+
// just ensure that the window is active
19+
if (_window.Content is not Frame rootFrame)
20+
{
21+
// Create a Frame to act as the navigation context and navigate to the first page
22+
rootFrame = new Frame();
2323

24-
// Place the frame in the current Window
25-
_window.Content = rootFrame;
26-
}
24+
// Place the frame in the current Window
25+
_window.Content = rootFrame;
26+
}
2727

28-
if (rootFrame.Content == null)
29-
{
30-
// When the navigation stack isn't restored navigate to the first page,
31-
// configuring the new page by passing required information as a navigation
32-
// parameter
33-
rootFrame.Navigate(typeof(MainPage), args.Arguments);
34-
}
28+
if (rootFrame.Content == null)
29+
{
30+
// When the navigation stack isn't restored navigate to the first page,
31+
// configuring the new page by passing required information as a navigation
32+
// parameter
33+
rootFrame.Navigate(typeof(MainPage), args.Arguments);
34+
}
3535

36-
// Ensure the current window is active
37-
_window.Activate();
38-
}
39-
}
36+
// Ensure the current window is active
37+
_window.Activate();
38+
}
39+
}

0 commit comments

Comments
 (0)