Skip to content

Commit

Permalink
make sample classes internal and sealed
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Oct 21, 2024
1 parent 74636a6 commit 4ccd7d0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Maui.DataGrid.Sample/Models/Streak.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Maui.DataGrid.Sample.Models;

public class Streak : IComparable
internal sealed class Streak : IComparable
{
public GameResult Result { get; set; }

Expand Down Expand Up @@ -64,7 +64,7 @@ public int CompareTo(object? obj)
/// <inheritdoc/>
public override string ToString()
{
return $"{Enum.GetName(typeof(GameResult), Result)} {NumStreak}";
return $"{Enum.GetName(Result)} {NumStreak}";
}

/// <inheritdoc/>
Expand Down
2 changes: 1 addition & 1 deletion Maui.DataGrid.Sample/Models/Team.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Maui.DataGrid.Sample.Models;

public class Team
internal sealed class Team
{
public required string Name { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion Maui.DataGrid.Sample/SettingsPopup.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public partial class SettingsPopup
{
private readonly MainViewModel _viewModel;

public SettingsPopup(MainViewModel viewModel)
internal SettingsPopup(MainViewModel viewModel)
{
InitializeComponent();
_viewModel = viewModel;
Expand Down
2 changes: 1 addition & 1 deletion Maui.DataGrid.Sample/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Maui.DataGrid.Sample.ViewModels;
using Maui.DataGrid.Sample.Models;
using Maui.DataGrid.Sample.Utils;

public class MainViewModel : ViewModelBase
internal sealed class MainViewModel : ViewModelBase
{
public MainViewModel()
{
Expand Down
2 changes: 1 addition & 1 deletion Maui.DataGrid.Sample/ViewModels/ViewModelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Maui.DataGrid.Sample.ViewModels;
using System.Runtime.CompilerServices;
using System.Windows.Input;

public abstract class ViewModelBase : INotifyPropertyChanged
internal abstract class ViewModelBase : INotifyPropertyChanged
{
private readonly Dictionary<string, object?> _properties = [];

Expand Down

0 comments on commit 4ccd7d0

Please sign in to comment.