public void Render(NetworkMapModel model) { // Note: Invoke is handled by ViewModelBase - Sara if (model == null) { StatusPanel.StatusUpdate(StatusModel.Completed); ShowWarning(); return; } Log.WriteTrace(string.Format("Network Map View for file \"{0}\"", Path.GetFileName(model.NetworkMap.AnchorFilePath)), typeof(NetworkMapView).FullName, MethodBase.GetCurrentMethod().Name); ckbAnchor.Checked = model.NetworkMap.Anchored; ckbAnchor.Text = string.Format("Anchor - {0}", model.CurrentAnchor); HideWarning(); StatusUpdate(StatusModel.Update("Rendering")); try { cklbSources.Items.Clear(); foreach (var sequenceSource in model.NetworkMap.Nodes) { cklbSources.Items.Add(sequenceSource, sequenceSource.Selected); } dgvSequenceDiagram.SuspendLayout(); dgvSequenceDiagram.DataSource = null; dgvSequenceDiagram.DataSource = model.DataTable; } finally { dgvSequenceDiagram.ResumeLayout(); DataGridViewHelper.AutoSizeGridCell(dgvSequenceDiagram); StatusUpdate(StatusModel.Completed); } }