Ejemplo n.º 1
0
        public Customer AddNewCustomer()
        {
            var addCustomerForm = _moduleController.GetView <IfrmAddCustomer>();

            addCustomerForm.Customer = null;
            var dialogResult = addCustomerForm.ShowDialog();

            if (dialogResult == DialogResult.OK)
            {
                return(addCustomerForm.Customer);
            }

            return(null);
        }
Ejemplo n.º 2
0
        public void AddNewCustomer()
        {
            var addCustomerForm = _moduleController.GetView <IAddCustomerView>();

            addCustomerForm.Customer = null;
            var dialogResult = addCustomerForm.ShowDialog();

            if (dialogResult == DialogResult.OK)
            {
                var customerMaintenanceForm = _moduleController.GetView <ICustomerMaintenanceView>();
                customerMaintenanceForm.FillWithCustomerInfo(addCustomerForm.Customer);
            }
        }