Ejemplo n.º 1
0
        /********************************************************************************
         *
         * Method: Backbutton_Click
         *
         * Arguments: object sender, EventArgs e
         *
         * Return Type: void
         *
         * Purpose: Creates a new Form1 instance, initializes a new Donut_Form instance,
         *          closes the current form, and opens the main menu (Form1).
         *
         * *******************************************************************************/
        private void Backbutton_Click(object sender, EventArgs e)
        {
            Form1      form1      = new Form1();
            Donut_Form donut_Form = new Donut_Form(data_values_2017);

            form1.Show();
            this.Hide();
            donut_Form.Close();
        }
Ejemplo n.º 2
0
        /********************************************************************************
         *
         * Method: DonutForm_Closed
         *
         * Arguments: object sender, EventArgs e
         *
         * Return Type: void
         *
         * Purpose: Creates a new Form1 instance, initializes a new Donut_Form instance,
         *          closes the current form, and opens the main menu (Form1).
         *
         * *******************************************************************************/
        private void DonutForm_Closed(object sender, FormClosedEventArgs e)
        {
            Form1      form1      = new Form1();
            Donut_Form donut_Form = new Donut_Form(data_values_2017);

            form1.Show();
            this.Hide();
            donut_Form.Close();
        }