using System.Linq; using com.sun.org.apache.xpath.@internal.operations; using Comal.Classes; using InABox.Core; using InABox.DynamicGrid; using Microsoft.Office.Interop.Outlook; namespace PRSDesktop { public class JobDocumentSetMileStoneGrid : DynamicDataGrid { public JobDocumentSetMileStoneGrid() : base() { OnCustomiseEditor += OnOnCustomiseEditor; } private void OnOnCustomiseEditor(IDynamicEditorForm sender, JobDocumentSetMileStone[]? items, DynamicGridColumn column, BaseEditor editor) { if (string.Equals(column.ColumnName, "Issued") || string.Equals(column.ColumnName, "Closed")) editor.Editable = Security.IsAllowed() ? Editable.Enabled : Editable.Disabled; } } }