Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 test
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Button1_Click(object sender, EventArgs e)
- {
- int score = 0;
- if (radioButton3.Checked == true)
- {
- score++;
- }
- if (radioButton6.Checked == true)
- {
- score++;
- }
- if (radioButton8.Checked == true)
- {
- score++;
- }
- if (maskedTextBox1.Text == "2.7")
- {
- score++;
- }
- label5.Text = String.Format("Правильных ответов: {0}", score);
- }
- private void label1_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement