public void AddPanel(MyPanel panel) { //lst_OpenedPanel.Add(panel); current_panel_depth += panel.plusDepth; panel.SetPanelDepth(current_panel_depth); }