📄 fdetay.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace MasterDetailReport
{
/// <summary>
/// Summary description for fDetay.
/// </summary>
public class fDetay : System.Windows.Forms.Form
{
private CurrencyManager cmDersler;
private System.Data.OleDb.OleDbConnection cOgrenci;
private System.Data.OleDb.OleDbDataAdapter daKimlik;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox tbNumara;
private System.Windows.Forms.TextBox tbAd;
private System.Windows.Forms.TextBox tbSoyad;
private System.Windows.Forms.TextBox tbTelefon;
private System.Windows.Forms.TextBox tbEMail;
private System.Windows.Forms.TextBox tbBitLise;
private System.Windows.Forms.TextBox tbAdres;
public string numara;
private System.Windows.Forms.DataGrid dgDersler;
private System.Data.OleDb.OleDbCommand oleDbSelectCommand1;
private System.Data.OleDb.OleDbCommand oleDbInsertCommand1;
private System.Data.OleDb.OleDbCommand oleDbUpdateCommand1;
private System.Data.OleDb.OleDbCommand oleDbDeleteCommand1;
private MasterDetailReport.dsOgrenci dsOgrenci;
private System.Windows.Forms.ImageList iButton;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button1;
private System.Data.OleDb.OleDbCommand oleDbSelectCommand2;
private System.Data.OleDb.OleDbCommand oleDbInsertCommand2;
private System.Data.OleDb.OleDbCommand oleDbUpdateCommand2;
private System.Data.OleDb.OleDbCommand oleDbDeleteCommand2;
private System.Data.OleDb.OleDbDataAdapter daDersler;
private System.Windows.Forms.DataGridTableStyle dataGridTableStyle1;
private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn1;
private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn2;
private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn3;
private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn4;
private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn5;
private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn6;
private System.ComponentModel.IContainer components;
public fDetay()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(fDetay));
this.cOgrenci = new System.Data.OleDb.OleDbConnection();
this.daKimlik = new System.Data.OleDb.OleDbDataAdapter();
this.oleDbDeleteCommand1 = new System.Data.OleDb.OleDbCommand();
this.oleDbInsertCommand1 = new System.Data.OleDb.OleDbCommand();
this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
this.oleDbUpdateCommand1 = new System.Data.OleDb.OleDbCommand();
this.label1 = new System.Windows.Forms.Label();
this.tbNumara = new System.Windows.Forms.TextBox();
this.dsOgrenci = new MasterDetailReport.dsOgrenci();
this.tbAd = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.tbSoyad = new System.Windows.Forms.TextBox();
this.tbTelefon = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.tbEMail = new System.Windows.Forms.TextBox();
this.tbBitLise = new System.Windows.Forms.TextBox();
this.tbAdres = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.dgDersler = new System.Windows.Forms.DataGrid();
this.dataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle();
this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn5 = new System.Windows.Forms.DataGridTextBoxColumn();
this.dataGridTextBoxColumn6 = new System.Windows.Forms.DataGridTextBoxColumn();
this.iButton = new System.Windows.Forms.ImageList(this.components);
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.oleDbSelectCommand2 = new System.Data.OleDb.OleDbCommand();
this.oleDbInsertCommand2 = new System.Data.OleDb.OleDbCommand();
this.oleDbUpdateCommand2 = new System.Data.OleDb.OleDbCommand();
this.oleDbDeleteCommand2 = new System.Data.OleDb.OleDbCommand();
this.daDersler = new System.Data.OleDb.OleDbDataAdapter();
((System.ComponentModel.ISupportInitialize)(this.dsOgrenci)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgDersler)).BeginInit();
this.SuspendLayout();
//
// cOgrenci
//
this.cOgrenci.ConnectionString = @"Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database Locking Mode=1;Data Source=""D:\M_Ali\Dersler\Hazirlananlar\ProgramlamaDilleri\Db\MasterDetail\ogrenci.mdb"";Mode=Share Deny None;Jet OLEDB:Engine Type=5;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet OLEDB:System database=;Jet OLEDB:SFP=False;persist security info=False;Extended Properties=;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Create System Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1";
//
// daKimlik
//
this.daKimlik.DeleteCommand = this.oleDbDeleteCommand1;
this.daKimlik.InsertCommand = this.oleDbInsertCommand1;
this.daKimlik.SelectCommand = this.oleDbSelectCommand1;
this.daKimlik.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
new System.Data.Common.DataTableMapping("Table", "kimlik", new System.Data.Common.DataColumnMapping[] {
new System.Data.Common.DataColumnMapping("Ad", "Ad"),
new System.Data.Common.DataColumnMapping("Adres", "Adres"),
new System.Data.Common.DataColumnMapping("Aile", "Aile"),
new System.Data.Common.DataColumnMapping("Anne", "Anne"),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -