Пример #1
0
        /********************************************************************************
         *
         * Method: Backbutton_Click
         *
         * Arguments: object sender, EventArgs e
         *
         * Return Type: void
         *
         * Purpose: Creates a new Form1 instance, initializes a new Line_Form instance,
         *          closes the current form, and opens the main menu (Form1).
         *
         * *******************************************************************************/
        private void Backbutton_Click(object sender, EventArgs e)
        {
            Form1     form1     = new Form1();
            Line_Form line_Form = new Line_Form(data_values_2014, data_values_2015, data_values_2016, data_values_2017);

            form1.Show();
            this.Hide();
            line_Form.Close();
        }
Пример #2
0
        /********************************************************************************
         *
         * Method: LineForm_Closed
         *
         * Arguments: object sender, EventArgs e
         *
         * Return Type: void
         *
         * Purpose: Creates a new Form1 instance, initializes a new Line_Form instance,
         *          closes the current form, and opens the main menu (Form1).
         *
         * *******************************************************************************/
        private void LineForm_Closed(object sender, FormClosedEventArgs e)
        {
            Form1     form1     = new Form1();
            Line_Form line_Form = new Line_Form(data_values_2014, data_values_2015, data_values_2016, data_values_2017);

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