Exemple #1
0
 public OptionsViewModel(IUIColorsViewModel colors, ICultureViewModel culture)
 {
     UIColorsViewModel = colors ?? throw new ArgumentNullException(nameof(colors));
     CultureViewModel  = culture ?? throw new ArgumentNullException(nameof(culture));
 }
Exemple #2
0
 public OptionsViewModel(IUIColorsViewModel colors, ICultureViewModel culture)
 {
     UIColorsViewModel = colors ?? throw new ArgumentNullException(nameof(colors), $"{nameof(colors)} {Resources.IsRequired}");
     CultureViewModel  = culture ?? throw new ArgumentNullException(nameof(culture), $"{nameof(culture)} {Resources.IsRequired}");
 }