Example #1
0
        /********************************************************************************
         *
         * Method: Back_Button_Click
         *
         * Arguments: object sender, EventArgs e
         *
         * Return Type: void
         *
         * Purpose: Saves the game upon going back.
         *
         * *******************************************************************************/
        private void Back_Button_Click(object sender, EventArgs e)
        {
            int currentStartTime = MD.startTime;

            MD           = new MediumData();
            MD.startTime = currentStartTime;
            MD.medium_summation_matrix        = summation_matrix;
            MD.should_display_number          = should_display_number;
            MD.initially_displayed            = initially_displayed;
            MD.medium_right_edge              = right_edge;
            MD.medium_bottom_edge             = bottom_edge;
            MD.medium_custom_summation_matrix = custom_summation_matrix;
            MD.medium_custom_right_edge       = custom_right_edge;
            MD.medium_custom_bottom_edge      = custom_bottom_edge;
            Form1       form1       = new Form1(MD);
            Medium_Form medium_Form = new Medium_Form(MD);

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