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

namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int i, f = 0;

            if (textBox1.Text != "")
                global.surname = textBox1.Text;
            else
                f = 1;
            if (textBox2.Text != "")
                global.name = textBox2.Text;
            else
                f = 1;
            if (textBox3.Text != "")
                global.patronymic = textBox3.Text;
            else
                f = 1;
            if (textBox4.Text != "")
                global.school = textBox4.Text;
            else
                f = 1;
            if (textBox5.Text != "")
                global.course = textBox5.Text;
            else
                f = 1;

            if (f == 1)
                label8.Text = "Данные заполнены\r\nне полностью!";
            else
            {
                label8.Text = "";
                if (global.modes == null)
                    global.modes = new Form2();
                global.modes.Show();
                global.mainForm.Hide();
            }
        }
    }
}
