Example #1
0
        public Create(CreatePresenter presenter, IFormFactory formFactory)
        {
            _presenter   = presenter;
            _formFactory = formFactory;

            InitializeComponent();

            var customerSelection = _formFactory.CreateForm <CustomerSelection.View>();

            customerSelection.VehicleSelection += (sender, args) =>
            {
                VehicleRegistration = args.Entity;
            };

            customerSelection.ShowDialog();

            if (_vehicleRegistration == null)
            {
                Dispose();
            }

            _presenter.SetForm(this);
        }
Example #2
0
        public Create(CreatePresenter presenter, IFormFactory formFactory)
        {
            _presenter = presenter;
            _formFactory = formFactory;

            InitializeComponent();

            var customerSelection = _formFactory.CreateForm<CustomerSelection.View>();

            customerSelection.VehicleSelection += (sender, args) =>
            {
                VehicleRegistration = args.Entity;
            };

            customerSelection.ShowDialog();

            if (_vehicleRegistration == null)
            {
                Dispose();
            }

            _presenter.SetForm(this);
        }