mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-17 13:55:41 +00:00
* Split type combobox into system combobox and disc type combobox * corrected indentation for xaml file * fixed merge with head * fixed format * fixed issues for PR, added KnownSystem.CUSTOM * removed Updater.cs which ended by error in commit * fixed GetOuptutName() for new drive/system combobox * added 4 new options: quiet mode, paranoid mode, disable media type detect and c2 reread amount * added default C2 reread tries to config * fixed issues for PR * removed commented leftover
53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DICUI.UI
|
|
{
|
|
public class OptionsViewModel
|
|
{
|
|
private Options _options;
|
|
|
|
public OptionsViewModel(Options options)
|
|
{
|
|
this._options = options;
|
|
}
|
|
|
|
public bool QuietMode
|
|
{
|
|
get { return _options.QuietMode; }
|
|
set { _options.QuietMode = value; }
|
|
}
|
|
|
|
public bool ParanoidMode
|
|
{
|
|
get { return _options.ParanoidMode; }
|
|
set { _options.ParanoidMode = value; }
|
|
}
|
|
|
|
public bool SkipMediaTypeDetection
|
|
{
|
|
get { return _options.SkipMediaTypeDetection; }
|
|
set { _options.SkipMediaTypeDetection = value; }
|
|
}
|
|
|
|
public string RereadAmountForC2
|
|
{
|
|
get { return Convert.ToString(_options.RereadAmountForC2); }
|
|
set
|
|
{
|
|
if (Int32.TryParse(value, out int result))
|
|
_options.RereadAmountForC2 = result;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static class ViewModels
|
|
{
|
|
public static OptionsViewModel OptionsViewModel { get; set; }
|
|
}
|
|
|
|
}
|