-
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.
- Loading branch information
Showing
320 changed files
with
5,796 additions
and
1,629 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
File renamed without changes.
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
File renamed without changes
File renamed without changes.
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,4 +1,4 @@ | ||
namespace SMW_ML.Models | ||
namespace Retro_ML.Application.Models | ||
{ | ||
internal class Error | ||
{ | ||
|
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
File renamed without changes.
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
31 changes: 31 additions & 0 deletions
31
Application/ViewModels/Components/FieldInfo/BoolViewModel.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using ReactiveUI; | ||
using Retro_ML.Configuration.FieldInformation; | ||
|
||
namespace Retro_ML.Application.ViewModels.Components.FieldInfo | ||
{ | ||
internal class BoolViewModel : ViewModelBase | ||
{ | ||
public BoolFieldInfo FieldInfo { get; } | ||
public string FieldName => FieldInfo.Name; | ||
public string DisplayName => FieldInfo.ReadableName; | ||
|
||
private bool isChecked; | ||
public bool IsChecked | ||
{ | ||
get => isChecked; | ||
set => this.RaiseAndSetIfChanged(ref isChecked, value); | ||
} | ||
|
||
public BoolViewModel() | ||
{ | ||
this.IsChecked = true; | ||
FieldInfo = new BoolFieldInfo("TestField", "Test Field"); | ||
} | ||
|
||
public BoolViewModel(BoolFieldInfo boolFieldInfo, bool value) | ||
{ | ||
FieldInfo = boolFieldInfo; | ||
isChecked = value; | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
Application/ViewModels/Components/FieldInfo/IntegerChoiceViewModel.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using ReactiveUI; | ||
using Retro_ML.Configuration.FieldInformation; | ||
|
||
namespace Retro_ML.Application.ViewModels.Components.FieldInfo | ||
{ | ||
internal class IntegerChoiceViewModel : ViewModelBase | ||
{ | ||
public IntegerChoiceFieldInfo FieldInfo { get; } | ||
public string FieldName => FieldInfo.Name; | ||
public string DisplayName => FieldInfo.ReadableName; | ||
private int value; | ||
public int Value | ||
{ | ||
get => value; | ||
set | ||
{ | ||
this.RaiseAndSetIfChanged(ref this.value, value); | ||
} | ||
} | ||
public int[] PossibleValues => FieldInfo.PossibleValues; | ||
|
||
public IntegerChoiceViewModel() | ||
{ | ||
FieldInfo = new IntegerChoiceFieldInfo("TestField", "Test Field", new int[] { 1, 3, 5, 7, 10 }); | ||
this.value = 5; | ||
} | ||
|
||
public IntegerChoiceViewModel(IntegerChoiceFieldInfo fieldInfo, int value) | ||
{ | ||
FieldInfo = fieldInfo; | ||
this.value = value; | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
Application/ViewModels/Components/FieldInfo/IntegerViewModel.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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using ReactiveUI; | ||
using Retro_ML.Configuration.FieldInformation; | ||
|
||
namespace Retro_ML.Application.ViewModels.Components.FieldInfo | ||
{ | ||
internal class IntegerViewModel : ViewModelBase | ||
{ | ||
public IntegerFieldInfo FieldInfo { get; } | ||
public string FieldName => FieldInfo.Name; | ||
public string DisplayName => FieldInfo.ReadableName; | ||
|
||
private int value; | ||
public int Value | ||
{ | ||
get => value; | ||
set | ||
{ | ||
this.RaiseAndSetIfChanged(ref this.value, value); | ||
} | ||
} | ||
public int MinimumValue => FieldInfo.MinimumValue; | ||
public int MaximumValue => FieldInfo.MaximumValue; | ||
public int Increment => FieldInfo.Increment; | ||
public bool HasIncrement => FieldInfo.Increment > 0; | ||
|
||
public IntegerViewModel() | ||
{ | ||
FieldInfo = new IntegerFieldInfo("TestField", "Test Field", 5, 25, 5); | ||
Value = 15; | ||
} | ||
|
||
public IntegerViewModel(IntegerFieldInfo fieldInfo, int value) | ||
{ | ||
FieldInfo = fieldInfo; | ||
Value = value; | ||
} | ||
|
||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
.../Components/InputOutputConfigViewModel.cs → .../Components/InputOutputConfigViewModel.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
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
4 changes: 2 additions & 2 deletions
4
...dels/Components/StopConditionViewModel.cs → ...dels/Components/StopConditionViewModel.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
Oops, something went wrong.