Exemple #1
0
 private void Columns_DataChanged(object sender, EventingList<Column>.EventInfo e)
 {
     switch (e.EventType)
     {
         case EventingList<Column>.EventType.Deleted:
             DetachFromColumnsEvents(e.Items);
             break;
         case EventingList<Column>.EventType.Added:
             AttachToColumnsEvents(e.Items);
             break;
     }
 }
Exemple #2
0
 public HeaderSection(ISectionHost hostControl, EventingList<Column> columns)
     : base(hostControl, columns)
 {
     Columns.DataChanged += Columns_DataChanged;
 }
 private void ChildrenDataChanged(object sender, EventingList<Section>.EventInfo e)
 {
     switch (e.EventType)
     {
         case EventingList<Section>.EventType.Deleted:
             foreach (Section s in e.Items)
             {
                 s.Parent = null;
             }
             break;
         case EventingList<Section>.EventType.Added:
             foreach (Section s in e.Items)
             {
                 s.Parent = this;
             }
             break;
     }
 }
Exemple #4
0
 private void GroupedItems_DataChanged( object sender, EventingList<Column>.EventInfo e )
 {
     //
     // Grouping has changed so clear collapse point, maybe later we can do something to preserve items state.
     _groupExpansionState.Clear();
 }
Exemple #5
0
 private void Columns_DataChanged(object sender, EventingList<Column>.EventInfo e)
 {
     Host.LazyLayout(Parent);
 }
 public HeaderColumnSectionContainer( ISectionHost hostControl, EventingList<Column> columns )
     : base(hostControl)
 {
     _columns = columns;
 }
 private void GroupedItems_DataChanged(object sender, EventingList<Column>.EventInfo e)
 {
     HandleEnablingGroupButtons();
 }
 private void GroupedItems_DataChanged(object sender, EventingList<Column>.EventInfo e)
 {
     Host.LazyLayout(null);
 }
 public CustomiseGroupingSection(ISectionHost hostControl, EventingList<Column> columns)
     : base(hostControl, columns)
 {
     Columns.DataChanged += GroupedItems_DataChanged;
 }
Exemple #10
0
 public virtual HeaderSection CreateHeaderSection( ISectionHost hostControl, EventingList<Column> columns )
 {
     return new HeaderSection( hostControl, columns );
 }
Exemple #11
0
 public virtual Section CreateCustomiseGroupingSection( ISectionHost hostControl, EventingList<Column> columns )
 {
     return new CustomiseGroupingSection( hostControl, columns );
 }
 private void columns_DataChanged( object sender, EventingList<Column>.EventInfo e )
 {
     SyncSectionsToColumns( HeaderColumnSection.DisplayMode.Customise );
     Host.LazyLayout( null );
 }
 public AvailableColumnsSection( ISectionHost host, EventingList<Column> columns )
     : base(host, columns)
 {
     columns.DataChanged += columns_DataChanged;
 }
 private void columnList_DataChanged(object sender, EventingList<Column>.EventInfo e)
 {
     switch (e.EventType)
     {
         case EventingList<Column>.EventType.Deleted:
             foreach (Column c in e.Items)
             {
                 _availableColumns.Remove(c);
             }
             break;
         case EventingList<Column>.EventType.Added:
             foreach (Column c in e.Items)
             {
                 _availableColumns.Add(c);
             }
             break;
         default:
             break;
     }
 }