public override void OnClose() { m_MemoryMap = null; m_Spreadsheet = null; if (m_ToolbarExtensionMode != null) { m_ToolbarExtensionMode.ViewPaneChanged -= OnViewPaneChanged; } m_ToolbarExtensionMode = null; }
void OnModeChanged(UIState.BaseMode newMode, UIState.ViewMode newViewMode) { if (m_ToolbarExtensionMode != null) { m_ToolbarExtensionMode.ViewPaneChanged -= OnViewPaneChanged; m_ToolbarExtensionMode = null; } if (newMode != null) { newMode.ViewPaneChanged += OnViewPaneChanged; m_ToolbarExtensionMode = newMode; } OnViewPaneChanged(newMode.CurrentViewPane); }
public void TransitMode(UIState.BaseMode newMode) { if (newMode == diffMode) { CurrentViewMode = ViewMode.ShowDiff; } else if (newMode == FirstMode) { CurrentViewMode = ViewMode.ShowFirst; } else if (newMode == SecondMode) { CurrentViewMode = ViewMode.ShowSecond; } else { FirstMode = newMode; CurrentViewMode = ViewMode.ShowFirst; ModeChanged(newMode, CurrentViewMode); } }
public History(SpreadsheetPane spreadsheetPane, UIState.BaseMode mode, Database.CellLink cell) { Mode = mode; m_Table = spreadsheetPane.m_CurrentTableLink; m_SpreadsheetState = spreadsheetPane.m_Spreadsheet.CurrentState; }