private bool AllowColumn(ViewColumn column, IList <int> allowedEvents) { var col = column as ClickableColumn; if (col == null) { return(true); } var eventNumber = col.Event == null ? col.EventNumber : col.Event.GetEventId(); if (col.Event != null && col.Event is UserConfirmation) { eventNumber = (col.Event as UserConfirmation).OnConfirmationUIAction; } return(allowedEvents.Contains(eventNumber)); }
public void AddColumn(ViewColumn column) { Columns.Add(column); }
public void RemoveColumn(ViewColumn column) { Columns.Remove(column); }