/// <summary>
            /// Remove all panels.
            /// </summary>
            public void Clear()
            {
                // remove all panel from parent
                foreach (var panel in collection)
                {
                    owner.RemovePanel(panel);
                }

                collection.Clear();
            }
Example #2
0
 void OnClosed(object sender, EventArgs e)
 {
     owner.RemovePanel(panel);
 }