using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
Form2 ff = new Form2();
ff.Show();
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
}
sinemaTableAdapters.Salon_BilgileriTableAdapter salon = new sinemaTableAdapters.Salon_BilgileriTableAdapter();
private void button1_Click(object sender, EventArgs e)
{
try
{
salon.SalonEkleme(textBox1.Text);
MessageBox.Show("Salon Eklendi","Kayıt");
textBox1.Text = "";
}
catch (Exception)
{
MessageBox.Show("Aynı salonu daha önce eklediniz!!!","Uyarı");
}textBox1.Text = "";
}
private void button3_Click(object sender, EventArgs e)
{
Environment.Exit(0);
}
}
}
Hiç yorum yok:
Yorum Gönder