private void CreateControllers(Type mainListType) { Controller = new TestEditorController(mainListType, View, QueryHelper, Session); MainGridController = View.MainGridController = new TestMainGridController(MainGrid, Controller); MainGrid.SetController(MainGridController); if (Controller.IsParentGridToBeShown) { ParentGridController = new TestParentGridController(ParentGrid, Controller); ParentGrid.SetController(ParentGridController); } }