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;
//burası DronePilotManager.cs ye çift tıklayınca açılan kod penceresi
namespace DroneGuvenlik
{
public partial class dronePilotManager : Form
{
public dronePilotManager()
{
InitializeComponent();
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
//Pilot izinlerini ekle butonunun kodudur
//Butona basıldığunda kontroller.cs formuna yönlendirir , ekranda gösterir.
Kontroller izinlerSayfasi = new Kontroller();
izinlerSayfasi.Show();
}
private void button1_Click(object sender, EventArgs e)
{
//Pilot ekle butonunun kodlarıdır
//Butona basıldığında Pilot.cs formuna yönlendirir.
Pilot pilotBilgileri = new Pilot();
pilotBilgileri.Show();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
}
private void Pilotlar_Click(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
}
private void label3_Click(object sender, EventArgs e)
{
}
private void label4_Click(object sender, EventArgs e)
{
}
private void button4_Click(object sender, EventArgs e)
{
}
private void button5_Click(object sender, EventArgs e)
{
//Kaydet ve çık butonu.
//Burada uygulamayı kapatıyoruz.
this.Close();
Application.Exit();
}
private void pilotBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.pilotBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.pilotDataSet);
}
private void dronePilotManager_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'izinlerDataSet.izinKontrol' table. You can move, or remove it, as needed.
this.izinKontrolTableAdapter.Fill(this.izinlerDataSet.izinKontrol);
// TODO: This line of code loads data into the 'pilotDataSet.pilot' table. You can move, or remove it, as needed.
this.pilotTableAdapter.Fill(this.pilotDataSet.pilot);
}
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
{
MessageBox.Show("Ekle butonuna tıklandı");
}
private void button1_Click_1(object sender, EventArgs e)
{
this.Validate();
this.pilotBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.pilotDataSet);
}
}
}