예제 #1
0
        private void btnSignUp_Click(object sender, EventArgs e)
        {
            TruckingIndustryEntities8 obj = new TruckingIndustryEntities8();

            obj.klienty_Ins(tbFullName.Text, tbMail.Text, tbLogin.Text, textBox1.Text, tbAdres.Text, Convert.ToInt32(tbPhone.Text));
            StartForm obje = new StartForm();

            obje.Show();
            MessageBox.Show("Регистрация прошла успешно!");
            this.Hide();
        }
예제 #2
0
파일: FLogin.cs 프로젝트: winzar110/Project
        private void btnLogin_Click(object sender, EventArgs e)
        {
            TruckingIndustryEntities8 obj = new TruckingIndustryEntities8();

            string a = obj.SELECT_LP(textBox1.Text, textBox2.Text).FirstOrDefault().ToString();

            if (a == textBox1.Text)
            {
                sf.label1.Text = textBox1.Text;
                this.Hide();
                sf.Show();
            }
            else
            {
                MessageBox.Show("Неправильный логин или пароль");
            }
        }
예제 #3
0
 private void FilialsF_Load(object sender, EventArgs e)
 {
     TruckingIndustryEntities8 obj = new TruckingIndustryEntities8();
     //dataGridView1.DataSource = obj.(null);
 }