Beispiel #1
0
        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);
        }
Beispiel #2
0
        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();
        }