using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace тест
{
    public partial class result : Form
    {
        public string fname, lname, group, course;

        private void textBox1_FontChanged(object sender, EventArgs e)
        {

        }

        private void result_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }

        int sum;

        public result(string f, string l, string g, string c, int s)
        {
            InitializeComponent();

            fname = f;
            lname = l;
            group = g;
            course = c;
            sum = s;
        }

        private void result_Shown(object sender, EventArgs e)
        {
            textBox1.Text = "Тест пройден" + Environment.NewLine +
                "Фамилия: " + lname + Environment.NewLine +
                "Имя: " + fname + Environment.NewLine + 
                "Группа: " + group + Environment.NewLine + 
                "Курс: " + course + Environment.NewLine +
                "Количество баллов: " + Convert.ToString(sum) + Environment.NewLine;
        }
    }
}
