Skip to content

Commit

Permalink
Moved enumeration to appropriate namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Jul 6, 2023
1 parent 61159dd commit 69fdbc3
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 22 deletions.
23 changes: 1 addition & 22 deletions Gavilya/Classes/Definitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,25 +201,4 @@ public static Dictionary<string, int> GuidIndex
/// <see langword="true"/> if hidden games should display despite being hidden.
/// </summary>
public static bool DisplayHiddenGames { get; set; } = false;
}

/// <summary>
/// The actions when a <see cref="Windows.SearchGameCover"/> window is opened.
/// </summary>
public enum GameAssociationActions
{
/// <summary>
/// Search for a game.
/// </summary>
Search,

/// <summary>
/// Associate a game.
/// </summary>
Associate,

/// <summary>
/// Search the cover and associate the game ID to it.
/// </summary>
Both
}
}
45 changes: 45 additions & 0 deletions Gavilya/Enums/GameAssociationActions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
MIT License
Copyright (c) Léo Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

namespace Gavilya.Enums;
/// <summary>
/// The actions when a <see cref="Windows.SearchGameCover"/> window is opened.
/// </summary>
public enum GameAssociationActions
{
/// <summary>
/// Search for a game.
/// </summary>
Search,

/// <summary>
/// Associate a game.
/// </summary>
Associate,

/// <summary>
/// Search the cover and associate the game ID to it.
/// </summary>
Both
}
1 change: 1 addition & 0 deletions Gavilya/Pages/AddEditPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
using Gavilya.Classes;
using Gavilya.Enums;
using Gavilya.UserControls;
using Gavilya.Windows;
using Microsoft.Win32;
Expand Down
1 change: 1 addition & 0 deletions Gavilya/Pages/AddEditPage2.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
using Gavilya.Classes;
using Gavilya.Enums;
using Gavilya.SDK.RAWG;
using Gavilya.UserControls;
using Gavilya.Windows;
Expand Down
1 change: 1 addition & 0 deletions Gavilya/Windows/SearchGameCover.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
using Gavilya.Classes;
using Gavilya.Enums;
using Gavilya.Pages;
using Gavilya.SDK.RAWG;
using Gavilya.UserControls;
Expand Down

0 comments on commit 69fdbc3

Please sign in to comment.