예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OptionsPage"/> class.
        /// </summary>
        public OptionsPage()
        {
            _optionsPageControl             = new OptionsPageControl();
            _optionsPageControl.Location    = new Point(0, 0);
            _optionsPageControl.OptionsPage = this;

            // Nom de la sous-clé de registre où sont stockés les données
            SettingsRegistryPath = ModelConstants.ApplicationName;
        }
예제 #2
0
        public OptionsPage()
        {
            var loggerFactory   = ServiceLocator.Instance.Get <ILoggerFactory>();
            var dataLayer       = ServiceLocator.Instance.Get <IDataLayer>();
            var settings        = ServiceLocator.Instance.Get <ISettings>();
            var eventDispatcher = ServiceLocator.Instance.Get <IEventDispatcher>();

            controller     = new OptionsPageController(loggerFactory, dataLayer, settings, eventDispatcher);
            optionsControl = new OptionsPageControl();
            controller.RegisterView(optionsControl);
            controller.PrepareView();
            controller.Prepare();
        }
예제 #3
0
        public FrameworkElement CreateControl()
        {
            var optionsPageControl = new OptionsPageControl();

            return(optionsPageControl);
        }