Example #1
0
 private void bt_LoadFrom_Click(object sender, EventArgs e)
 {
     GridLoadingForm glf = new GridLoadingForm();
     try
     {
         glf.LoadingFinished += glf_LoadingFinished;
         glf.ShowDialog();
     }
     catch (FileNotFoundException)
     {
         MessageBox.Show("The file was not found.", "LifeGame", MessageBoxButtons.OK,
             MessageBoxIcon.Error);
         glf.Close();
     }
     catch (Exception x)
     {
         MessageBox.Show("An error occured : " + x.Message, "LifeGame", MessageBoxButtons.OK,
             MessageBoxIcon.Error);
     }
 }
Example #2
0
        private void bt_LoadFrom_Click(object sender, EventArgs e)
        {
            GridLoadingForm glf = new GridLoadingForm();

            try
            {
                glf.LoadingFinished += glf_LoadingFinished;
                glf.ShowDialog();
            }
            catch (FileNotFoundException)
            {
                MessageBox.Show("The file was not found.", "LifeGame", MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
                glf.Close();
            }
            catch (Exception x)
            {
                MessageBox.Show("An error occured : " + x.Message, "LifeGame", MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
            }
        }