internal static void SetParameterValues( IEnumerable <KeyValuePair <string, string> > arguments, TCommandLineParams commandLineParams) { foreach (var _argPair in arguments.Where(_ => ParameterTemplates.ContainsKey(_.Key))) { ParameterTemplates[_argPair.Key].SetValue(commandLineParams, _argPair.Value); } }
public GaugeViewModel(Gauge gauge, Action <NavigationViewModel> navigate, NavigationViewModel back) : base(navigate, back) { _oldGauge = gauge; Gauge = gauge.Clone(); EditorCommand = new RelayCommand(Editor); AddTemplateCommand = new RelayCommand(AddTemplate); RemoveCommand = new RelayCommand(Remove); LocateCommand = new RelayCommand(Locate); OkCommand = new RelayCommand(Ok); CancelCommand = new RelayCommand(Cancel); RemoveGaugeCommand = new RelayCommand(RemoveGauge); SelectedTemplate = ParameterTemplates.First(); }