Skip to content

Commit 78a39cd

Browse files
committed
add missing newlines on file ends
1 parent 602d4e9 commit 78a39cd

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
using System.Windows;
2-
3-
namespace MediatR.Courier.Examples.Wpf.Core.View;
4-
5-
public sealed partial class MainControl
6-
{
7-
public MainControl() => InitializeComponent();
8-
9-
protected override void OnInitialized(EventArgs e)
10-
{
11-
base.OnInitialized(e);
12-
13-
ViewModel.InitializeAsync();
14-
}
15-
16-
private void IncrementClicked(object sender, RoutedEventArgs e) => ViewModel.IncrementNotificationCountAsync();
17-
}
1+
using System.Windows;
2+
3+
namespace MediatR.Courier.Examples.Wpf.Core.View;
4+
5+
public sealed partial class MainControl
6+
{
7+
public MainControl() => InitializeComponent();
8+
9+
protected override void OnInitialized(EventArgs e)
10+
{
11+
base.OnInitialized(e);
12+
13+
ViewModel.InitializeAsync();
14+
}
15+
16+
private void IncrementClicked(object sender, RoutedEventArgs e) => ViewModel.IncrementNotificationCountAsync();
17+
}
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
using System.Windows;
2-
3-
namespace MediatR.Courier.Examples.Wpf.Core.View;
4-
5-
public partial class MainWindow : Window
6-
{
7-
public MainWindow() => InitializeComponent();
8-
9-
private void OpenWindowClicked(object sender, RoutedEventArgs e)
10-
{
11-
var mainControl = new MainControl();
12-
var window = new Window { Content = mainControl };
13-
14-
window.Show();
15-
}
16-
17-
[System.Diagnostics.CodeAnalysis.SuppressMessage("Critical Code Smell", "S1215:\"GC.Collect\" should not be called", Justification = "We want that for testing")]
18-
private async void OnRunGcClicked(object sender, RoutedEventArgs e)
19-
{
20-
await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false);
21-
GC.Collect(2, GCCollectionMode.Forced, true);
22-
}
23-
}
1+
using System.Windows;
2+
3+
namespace MediatR.Courier.Examples.Wpf.Core.View;
4+
5+
public partial class MainWindow : Window
6+
{
7+
public MainWindow() => InitializeComponent();
8+
9+
private void OpenWindowClicked(object sender, RoutedEventArgs e)
10+
{
11+
var mainControl = new MainControl();
12+
var window = new Window { Content = mainControl };
13+
14+
window.Show();
15+
}
16+
17+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Critical Code Smell", "S1215:\"GC.Collect\" should not be called", Justification = "We want that for testing")]
18+
private async void OnRunGcClicked(object sender, RoutedEventArgs e)
19+
{
20+
await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false);
21+
GC.Collect(2, GCCollectionMode.Forced, true);
22+
}
23+
}
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
using System.Windows.Controls;
2-
3-
using MediatR.Courier.Examples.Wpf.Core.DependencyInjection;
4-
5-
namespace MediatR.Courier.Examples.Wpf.Core.View;
6-
7-
public abstract class ViewModelUserControlBase<TViewModel> : UserControl
8-
{
9-
protected ViewModelUserControlBase()
10-
{
11-
ViewModel = CompositionRoot.Resolve<TViewModel>()!;
12-
DataContext = ViewModel;
13-
}
14-
15-
protected TViewModel ViewModel { get; }
16-
}
1+
using System.Windows.Controls;
2+
3+
using MediatR.Courier.Examples.Wpf.Core.DependencyInjection;
4+
5+
namespace MediatR.Courier.Examples.Wpf.Core.View;
6+
7+
public abstract class ViewModelUserControlBase<TViewModel> : UserControl
8+
{
9+
protected ViewModelUserControlBase()
10+
{
11+
ViewModel = CompositionRoot.Resolve<TViewModel>()!;
12+
DataContext = ViewModel;
13+
}
14+
15+
protected TViewModel ViewModel { get; }
16+
}

0 commit comments

Comments
 (0)