Beispiel #1
0
            public void Restore(SpreadsheetPane pane)
            {
                var table = pane.m_UIState.CurrentMode.GetSchema().GetTableByReference(m_Table);

                if (table == null)
                {
                    Debug.LogError("No table named '" + m_Table.Name + "' found.");
                    return;
                }
                pane.m_CurrentTableLink         = m_Table;
                pane.CurrentTableIndex          = pane.m_UIState.CurrentMode.GetTableIndex(table);
                pane.m_Spreadsheet              = new UI.DatabaseSpreadsheet(pane.m_UIState.FormattingOptions, table, pane, m_SpreadsheetState);
                pane.m_Spreadsheet.onClickLink += pane.OnSpreadsheetClick;
                pane.m_EventListener.OnRepaint();
            }
Beispiel #2
0
 public History(SpreadsheetPane spreadsheetPane, UIState.BaseMode mode, Database.CellLink cell)
 {
     Mode               = mode;
     m_Table            = spreadsheetPane.m_CurrentTableLink;
     m_SpreadsheetState = spreadsheetPane.m_Spreadsheet.CurrentState;
 }