private void GoBackMenu() { panel.Controls.Clear(); PaymentMenu backMenu = new PaymentMenu(panel); panel.Controls.Add(backMenu); }
private void GoBackMenu() { mainPanel.Controls.Clear(); PaymentMenu backMenu = new PaymentMenu(mainPanel); mainPanel.Controls.Add(backMenu); }
private void button2_Click_1(object sender, EventArgs e) { mainPanel.Controls.Clear(); PaymentMenu thePaymentMenu = new PaymentMenu(mainPanel); mainPanel.Controls.Add(thePaymentMenu); }
public AddSubscription(Panel mainPanel) { InitializeComponent(); this.mainPanel = mainPanel; try { LoadStudents(); this.mainPanel = mainPanel; } catch (Exception ex) { MessageBox.Show(ex.Message); PaymentMenu backMenu = new PaymentMenu(mainPanel); mainPanel.Controls.Add(backMenu); } }