Esempio n. 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);
        }
Esempio n. 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();
        }