public void OpenTable(Database.TableReference tableRef, Database.Table table) { Profiling.StartProfiling("Profile_OpenTable_" + table.GetName()); CloseCurrentTable(); m_CurrentTableLink = tableRef; CurrentTableIndex = m_UIState.CurrentMode.GetTableIndex(table); m_Spreadsheet = new UI.DatabaseSpreadsheet(m_UIState.FormattingOptions, table, this); m_Spreadsheet.onClickLink += OnSpreadsheetClick; m_EventListener.OnRepaint(); }