コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OptionsForm"/> class.
        /// </summary>
        public OptionsForm()
        {
            this.InitializeComponent();

            this.presenter = new OptionsPresenter(this);

            this.presenter.LoadSettings();
        }
コード例 #2
0
        public void Initialize()
        {
            this.mockView = new Mock<IOptionsView>();
            this.mockSettingsService = new Mock<ISettingsService>();

            this.presenter = new OptionsPresenter(
                this.mockView.Object,
                this.mockSettingsService.Object);
        }