public void createBaseViewForm(object entity, IControllerBase controllerBase) { controllerBase.setEntity(entity); // send controller and entity to baseviewform baseViewForm = new BaseViewForm(controllerBase); baseViewForm.Show(); } // create base view form for each entity