private void RedrawIfNeeded() { bool isRedrawNeeded = NodeInfoFactory.Timestamp != FLastTimestamp || !CurrentPatchWindow.Equals(FLastPatchWindow); if (isRedrawNeeded) { if (FTagPanel.Visible) { FTagPanel.Redraw(); } else { FTagPanel.PendingRedraw = true; } if (FCategoryPanel.Visible) { FCategoryPanel.Redraw(); } else { FCategoryPanel.PendingRedraw = true; } } FLastTimestamp = NodeInfoFactory.Timestamp; FLastPatchWindow = CurrentPatchWindow; }
private void RedrawIfNeeded() { bool isRedrawNeeded = NodeInfoFactory.Timestamp != FLastTimestamp || !CurrentPatchWindow.Equals(FLastPatchWindow); if (isRedrawNeeded) { UpdatePanels(); } FLastTimestamp = NodeInfoFactory.Timestamp; FLastPatchWindow = CurrentPatchWindow; }