/// <inheritdoc/>
 public override void RemoveChildPanel(VisualizationPanel childPanel)
 {
     childPanel.PropertyChanged -= this.ChildVisualizationPanel_PropertyChanged;
     childPanel.Clear();
     this.Panels.Remove(childPanel);
     this.Cells = this.Panels.Count;
 }
Esempio n. 2
0
        /// <summary>
        /// Removes a cell specified by the panel it contains.
        /// </summary>
        /// <param name="panel">The panel whose cell should be removed.</param>
        public void RemoveCell(VisualizationPanel panel)
        {
            // Get the index of the panel to remove.
            int panelIndex = this.Panels.IndexOf(panel);

            // Unhook and remove the child panel
            panel.PropertyChanged -= this.ChildVisualizationPanel_PropertyChanged;
            panel.Clear();
            this.Panels.Remove(panel);
            this.UpdateChildPanelMargins();
        }