public Customer AddNewCustomer() { var addCustomerForm = _moduleController.GetView <IfrmAddCustomer>(); addCustomerForm.Customer = null; var dialogResult = addCustomerForm.ShowDialog(); if (dialogResult == DialogResult.OK) { return(addCustomerForm.Customer); } return(null); }
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); } }