示例#1
0
文件: ShowView.cs 项目: quintonn/QBic
        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));
        }
示例#2
0
 public void AddColumn(ViewColumn column)
 {
     Columns.Add(column);
 }
示例#3
0
 public void RemoveColumn(ViewColumn column)
 {
     Columns.Remove(column);
 }