private void InitUserControls(IntegrationTestsRunner runner) { _home = new HomeControl(runner); formFunctionPointer += new functioncall(RenameDB); editTablePointer += new functioncall2(EditTable); _home.userFunctionPointer = formFunctionPointer; _home.tableEditPointer = editTablePointer; //------------------------------------------------------------ _renameDBControl = new RenameDBControl(runner); renameDbNamePointer += new renamecall(HomePage); _renameDBControl.userSaveControl = renameDbNamePointer; //------------------------------------------------------------ _tableControl = new TableControl(runner); tablePointer += new renamecall(HomePage); _tableControl.tablePointer = tablePointer; //------------------------------------------------------------ _queryControl = new QueryControl(runner); queryPointer += new queryResultcall(ShowResult); _queryControl.queryPointer = queryPointer; //------------------------------------------------------------ _resultControl = new ResultControl(runner); }
public MainForm() { InitializeComponent(); _runner = new IntegrationTestsRunner(); InitUserControls(_runner); }