Ejemplo n.º 1
0
        /// <summary>
        /// Initlialises Xamarin Dialog service.
        /// Should be called after <c>Initialise()</c>.
        /// </summary>
        private void InitialiseDialogService(INavigation navigation)
        {
            IDialogService dialogService = container.GetInstance <IDialogService>();

            ((XamarinDialogService)dialogService).Initialise(navigation);

            dialogService.Configure(ShowroomDialogKeys.EXEMPLARY_DIALOG, typeof(ExemplaryDialog));
        }
Ejemplo n.º 2
0
        public ApplicationViewModel(IApplicationModel model, IDialogService dialogService)
        {
            _model         = model;
            _dialogService = dialogService;
            var map = new Dictionary <string, Func <Window> >();

            map[LOGIN_DLG] = () => new LoginWindow();
            _dialogService.Configure(map);
            Settings = new SettingsViewModel(_model.Settings);
            Module   = new ModuleViewModel(_model.Module);
        }