protected override void OnValueChanged(IndexColumnBase element, bool oldValue, bool newValue) { if (element.Index != null) { if (!element.Index.Entity.nHydrateModel.IsLoading && !element.Store.InUndo) { if (element.Index.IndexType != IndexTypeConstants.User) { throw new Exception("This is a managed index and cannot be modified."); } } } base.OnValueChanged(element, oldValue, newValue); }
protected override void OnValueChanged(IndexColumnBase element, bool oldValue, bool newValue) { if (element.Index != null) { if (!element.Index.Entity.nHydrateModel.IsLoading && !element.Store.InUndo) { if (element.Index.IndexType != IndexTypeConstants.User) throw new Exception("This is a managed index and cannot be modified."); } } base.OnValueChanged(element, oldValue, newValue); }