testirovanie/result.cs

51 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}
}
}