private void CreateControllers(Type mainListType) { EditorController = new TestEditorController(mainListType, EditorView, QueryHelper, Session); MainGridController = EditorView.MainGridController = new TestMainGridController(EditorView.MainGrid, EditorController); EditorView.MainGrid.SetController(MainGridController); }
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); } }