public History(MemoryMapDiffPane pane) { Mode = pane.m_UIState.CurrentMode; m_TableDisplay = pane.m_CurrentTableView; m_TableState = pane.m_Spreadsheet.CurrentState; m_State = pane.m_MemoryMap.CurrentViewState; m_FirstSnapshotActive = (pane.m_ActiveMode == pane.m_UIState.FirstMode); }
public void Restore(MemoryMapDiffPane pane) { pane.m_CurrentTableView = m_TableDisplay; pane.m_MemoryMap.CurrentViewState = m_State; if (m_FirstSnapshotActive) pane.m_ActiveMode = pane.m_UIState.FirstMode as UIState.SnapshotMode; else pane.m_ActiveMode = pane.m_UIState.SecondMode as UIState.SnapshotMode; pane.OnSelectRegions(m_State.HighlightedAddrMin, m_State.HighlightedAddrMax); pane.m_Spreadsheet.CurrentState = m_TableState; pane.m_EventListener.OnRepaint(); }