Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OptionsPage{TControl, TSettings}"/> class.
        /// </summary>
        /// <param name="windowFactory">The window factory.</param>
        /// <param name="settings">The settings.</param>
        protected OptionsPage(IOptionsPageWindowFactory windowFactory, TSettings settings)
        {
            this.windowFactory = windowFactory;
            this.settings      = settings;
            this.userControl   = new Lazy <UserControl>(() =>
                                                        new TControl {
                DataContext = this.settings
            });

            this.windowHandle = new Lazy <System.Windows.Forms.IWin32Window>(() =>
                                                                             this.windowFactory.CreateWindow(this.settings, this.userControl.Value));
        }
Ejemplo n.º 2
0
 public FooOptionsPage(IOptionsPageWindowFactory windowFactory, FooSettings settings)
     : base(windowFactory, settings)
 {
 }