Ejemplo n.º 1
0
 protected virtual void OnListHeaderStateChanged(ListHeaderStateChangedEventArgs e)
 {
     if (ListHeaderStateChanged != null)
     {
         ListHeaderStateChanged(this, e);
     }
 }
Ejemplo n.º 2
0
        // Handle the change in the list.
        private void header_ListHeaderStateChanged(object sender, ListHeaderStateChangedEventArgs e)
        {
            var     header = (ListHeader)sender;
            Control c      = this.flowLayoutPanel1.Controls[(string)header.Tag];

            if (e.State == ListHeaderState.Collapsed)
            {
                c.Hide();
            }
            else
            {
                c.Show();
            }
        }