private void SetView(DataPanel view) { fDrawingHelper.SuspendDrawing(); SuspendLayout(); try { pnlClient.SuspendLayout(); pnlClient.Controls.Clear(); if (view == null) { return; } pnlClient.Controls.Add(view); pnlClient.ResumeLayout(); fCurrentPanel = view; fCurrentPanel.UpdateView(); SetActions(view); fCurrentPanel.SelectionChanged(new List <Entity>() { }); btnPrev.Enabled = fNavigationStack.CanBackward(); btnNext.Enabled = fNavigationStack.CanForward(); } catch (Exception ex) { fLogger.WriteError("SetView.2()", ex); } ResumeLayout(); fDrawingHelper.ResumeDrawing(true); }