public OptionsInput()
 {
     InitializeComponent();
     this.MethodSelector.ItemsSource = Enum.GetValues(typeof(MethodType));
     this.DataContext = new OptionsInputViewModel(this);
     ViewModel        = this.DataContext as OptionsInputViewModel;
 }
 public InputModel(OptionsInputViewModel model)
 {
     this.C              = int.Parse(model?.CInput?.Replace(".", ",") ?? "0");
     this.E              = double.Parse(model?.EInput?.Replace(".", ",") ?? "0");
     this.L              = double.Parse(model?.LInput?.Replace(".", ",") ?? "0");
     this.X0             = double.Parse(model?.X0Input?.Replace(".", ",") ?? "0");
     this.T              = double.Parse(model?.TInput?.Replace(".", ",") ?? "0");
     this.SelectedMethod = (MethodType)Enum.Parse(typeof(MethodType), model.SelectedMethod);
 }