private void customerButton_Click(object sender, EventArgs e) { activePanel.Height = customerButton.Height; activePanel.Top = customerButton.Top; CustomerUiController customerUiController = new CustomerUiController(); mainPanel.Controls.Clear(); customerUiController.Dock = DockStyle.Fill; customerUiController.BringToFront(); customerUiController.Focus(); mainPanel.Controls.Add(customerUiController); }
public AddCustomerUi(CustomerUiController customerUiController2) { InitializeComponent(); customerUiController = customerUiController2; GetLastCustomerCode(); }