private void SetValue(TreeGridNode node, Difference diff) { if (diff.VR != DicomVRType.SQ) { node.Cells[3].Value = diff.FirstValue; node.Cells[4].Value = diff.SecondValue; } // // If the tag is located in both files we need to find the difference // if (diff.Location == TagLocation.Both && diff.IsChanged()) { if (diff.VR != DicomVRType.SQ) { DataGridViewDisableButtonCell cell = node.Cells[5] as DataGridViewDisableButtonCell; cell.Value = "Show Diff"; } } else { DataGridViewDisableButtonCell cell = node.Cells[5] as DataGridViewDisableButtonCell; cell.Value = string.Empty; if (diff.Location == TagLocation.First) { cell.Style.ForeColor = Color.Red; cell.Value = "Deleted"; } cell.Enabled = false; } }