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(); }
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("Неправильный логин или пароль"); } }
private void FilialsF_Load(object sender, EventArgs e) { TruckingIndustryEntities8 obj = new TruckingIndustryEntities8(); //dataGridView1.DataSource = obj.(null); }