Ejemplo n.º 1
0
        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>();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        public FilePickerService(Frame rootFrame, IRegisteredDbsService registration)
        {
            if (rootFrame == null) throw new ArgumentNullException("rootFrame");
            if (registration == null) throw new ArgumentNullException("registration");

            _rootFrame = rootFrame;
            _registration = registration;
        }
Ejemplo n.º 4
0
        public FilePickerService(Frame rootFrame, IRegisteredDbsService registration)
        {
            if (rootFrame == null)
            {
                throw new ArgumentNullException("rootFrame");
            }
            if (registration == null)
            {
                throw new ArgumentNullException("registration");
            }

            _rootFrame    = rootFrame;
            _registration = registration;
        }
Ejemplo n.º 5
0
        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();
        }