-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feeder: changed dynamic application combo box to static simulator chi…
…p, also removed the redundant check from the top level filter and instead relying on the granula file filter instead
- Loading branch information
Showing
13 changed files
with
70 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
...in/Models/Feeder/ApplicationFormatEnum.cs → ...odels/Feeder/SimulatorAbbreviationEnum.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
namespace ClrVpin.Models.Feeder; | ||
|
||
public static class ApplicationFormatEnum | ||
public static class SimulatorAbbreviationEnum | ||
{ | ||
public const string VirtualPinballX = "VPX"; | ||
// ReSharper disable once UnusedMember.Global | ||
public const string FuturePinball = "FP"; | ||
// ReSharper disable once UnusedMember.Global | ||
public const string PinballFx = "FX"; | ||
// ReSharper disable once UnusedMember.Global | ||
public const string PinballFx2 = "FX2"; | ||
// ReSharper disable once UnusedMember.Global | ||
public const string PinballFx3 = "FX3"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.ComponentModel; | ||
|
||
namespace ClrVpin.Models.Feeder; | ||
|
||
public enum SimulatorOptionEnum | ||
{ | ||
[Description("Virtual Pinball")] VirtualPinballX, | ||
[Description("Future Pinball")] FuturePinball, | ||
[Description("FX Pinball")] PinballFx, | ||
[Description("Unknown")] Unknown | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace ClrVpin.Models.Feeder; | ||
|
||
public static class SimulatorOptionHelper | ||
{ | ||
public static SimulatorOptionEnum? GetEnum(string stringType) | ||
{ | ||
SimulatorOptionEnum? simulatorOptionEnum = stringType switch | ||
{ | ||
SimulatorAbbreviationEnum.VirtualPinballX => SimulatorOptionEnum.VirtualPinballX, | ||
SimulatorAbbreviationEnum.FuturePinball => SimulatorOptionEnum.FuturePinball, | ||
SimulatorAbbreviationEnum.PinballFx => SimulatorOptionEnum.PinballFx, | ||
SimulatorAbbreviationEnum.PinballFx2 => SimulatorOptionEnum.PinballFx, | ||
SimulatorAbbreviationEnum.PinballFx3 => SimulatorOptionEnum.PinballFx, | ||
_ => null | ||
}; | ||
|
||
return simulatorOptionEnum; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters