public MainViewModel(INavigationService navigation, IRegisteredDbsService register, IMappingEngine maps, IFilePickerService picker, IEventAggregator events) { if (navigation == null) { throw new ArgumentNullException("navigation"); } if (register == null) { throw new ArgumentNullException("register"); } if (maps == null) { throw new ArgumentNullException("maps"); } if (picker == null) { throw new ArgumentNullException("picker"); } if (events == null) { throw new ArgumentNullException("events"); } _maps = maps; _picker = picker; _events = events; _register = register; _navigation = navigation; _databases = new BindableCollection <DatabaseItemViewModel>(); }
public PasswordViewModel(IFilePickerService picker, IRegisteredDbsService registrations, ICacheService cache, INavigationService navigation, IEventAggregator events) { if (picker == null) { throw new ArgumentNullException("picker"); } if (registrations == null) { throw new ArgumentNullException("registrations"); } if (cache == null) { throw new ArgumentNullException("cache"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } if (events == null) { throw new ArgumentNullException("events"); } _cache = cache; _picker = picker; _events = events; _navigation = navigation; _registrations = registrations; _password = new PasswordData(); }
public FilePickerService(Frame rootFrame, IRegisteredDbsService registration) { if (rootFrame == null) throw new ArgumentNullException("rootFrame"); if (registration == null) throw new ArgumentNullException("registration"); _rootFrame = rootFrame; _registration = registration; }
public FilePickerService(Frame rootFrame, IRegisteredDbsService registration) { if (rootFrame == null) { throw new ArgumentNullException("rootFrame"); } if (registration == null) { throw new ArgumentNullException("registration"); } _rootFrame = rootFrame; _registration = registration; }
public PasswordViewModel(IFilePickerService picker, IRegisteredDbsService registrations, ICacheService cache, INavigationService navigation, IEventAggregator events) { if (picker == null) throw new ArgumentNullException("picker"); if (registrations == null) throw new ArgumentNullException("registrations"); if (cache == null) throw new ArgumentNullException("cache"); if (navigation == null) throw new ArgumentNullException("navigation"); if (events == null) throw new ArgumentNullException("events"); _cache = cache; _picker = picker; _events = events; _navigation = navigation; _registrations = registrations; _password = new PasswordData(); }