/// <summary>
        /// Initializes a new instance of the <see cref="CustomDialogsManager{TDialogIndex}"/> class.
        /// </summary>


        public CustomDialogsManager(
            Dictionary <TDialogIndex, ICustomDialogProvider> dialogsDictionary,
            ICustomDialogDependencyResolver dependencyResolver) : base(
                dialogsDictionary)
        {
            CustomDialogBase.CustomDialogDependencyResolver = dependencyResolver;
            CustomDialogBase.DialogsManager = this;
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomDialogsManager{TDialogIndex}"/> class.
 /// </summary>
 /// <param name="rootNavigationController">Main navigation controller.</param>
 /// <param name="dialogsDictionary">Dialogs dictionary matching identifiers with their providers.</param>
 /// <param name="dependencyResolver">Component capable of providing instances for given ViewModel type.</param>
 public CustomDialogsManager(
     UINavigationController rootNavigationController,
     Dictionary <TDialogIndex, ICustomDialogProvider> dialogsDictionary,
     ICustomDialogDependencyResolver dependencyResolver)
     : base(dialogsDictionary)
 {
     CustomDialogBase.RootViewController             = rootNavigationController;
     CustomDialogBase.CustomDialogDependencyResolver = dependencyResolver;
     CustomDialogBase.DialogsManager = this;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomDialogsManager{TDialogIndex}"/> class.
 /// </summary>
 /// <param name="fragmentManager">Application's fragment manager.</param>
 /// <param name="dialogsDictionary">Definitions matching TDialogIndex values with actual dialog providers.</param>
 /// <param name="dependencyResolver">Optional argument for allowing automatic resolution of ViewModels in dialogs.</param>
 public CustomDialogsManager(
     FragmentManager fragmentManager,
     Dictionary <TDialogIndex, ICustomDialogProvider> dialogsDictionary,
     ICustomDialogDependencyResolver dependencyResolver = null)
     : base(dialogsDictionary)
 {
     CustomDialogBase.CustomDialogDependencyResolver = dependencyResolver;
     CustomDialogBase.ConfiguredFragmentManager      = fragmentManager;
     CustomDialogBase.DialogsManager = this;
 }