private void InsertAdderButton() { _controlAdderButton = new ControlAdderButton { Dock = DockStyle.Top }; if (_controlAdderButton.Controls[0].Controls["_button"] is Button control) { control.Click += ShowClientAdder; } _mainPanel.Controls.Add(_controlAdderButton); }
private void InsertAdderButton() { _controlAdderButton = new ControlAdderButton { Dock = DockStyle.Top }; if (_controlAdderButton.Controls[0].Controls["_button"] is Button control) { control.Click += InsertNewEntry; } _mainPanel.Controls.Add(_controlAdderButton); _clientCard.SendToBack(); }