コード例 #1
0
        private void GoBackMenu()
        {
            panel.Controls.Clear();
            PaymentMenu backMenu = new PaymentMenu(panel);

            panel.Controls.Add(backMenu);
        }
コード例 #2
0
        private void GoBackMenu()
        {
            mainPanel.Controls.Clear();
            PaymentMenu backMenu = new PaymentMenu(mainPanel);

            mainPanel.Controls.Add(backMenu);
        }
コード例 #3
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            mainPanel.Controls.Clear();
            PaymentMenu thePaymentMenu = new PaymentMenu(mainPanel);

            mainPanel.Controls.Add(thePaymentMenu);
        }
コード例 #4
0
 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);
     }
 }