⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dskimlik.cs

📁 masterdetail program about C#
💻 CS
📖 第 1 页 / 共 3 页
字号:
            internal DataColumn TelColumn {
                get {
                    return this.columnTel;
                }
            }
            
            public kimlikRow this[int index] {
                get {
                    return ((kimlikRow)(this.Rows[index]));
                }
            }
            
            public event kimlikRowChangeEventHandler kimlikRowChanged;
            
            public event kimlikRowChangeEventHandler kimlikRowChanging;
            
            public event kimlikRowChangeEventHandler kimlikRowDeleted;
            
            public event kimlikRowChangeEventHandler kimlikRowDeleting;
            
            public void AddkimlikRow(kimlikRow row) {
                this.Rows.Add(row);
            }
            
            public kimlikRow AddkimlikRow(
                        string Ad, 
                        string Adres, 
                        string Aile, 
                        string Anne, 
                        string Baba, 
                        string BitLise, 
                        string Cilt, 
                        System.DateTime DTarihi, 
                        string DYeri, 
                        string EMail, 
                        string IlceKod, 
                        string IlKod, 
                        string MahKoy, 
                        string Numara, 
                        string Sira, 
                        string Soyad, 
                        string Tel) {
                kimlikRow rowkimlikRow = ((kimlikRow)(this.NewRow()));
                rowkimlikRow.ItemArray = new object[] {
                        Ad,
                        Adres,
                        Aile,
                        Anne,
                        Baba,
                        BitLise,
                        Cilt,
                        DTarihi,
                        DYeri,
                        EMail,
                        IlceKod,
                        IlKod,
                        MahKoy,
                        Numara,
                        Sira,
                        Soyad,
                        Tel};
                this.Rows.Add(rowkimlikRow);
                return rowkimlikRow;
            }
            
            public kimlikRow FindByNumara(string Numara) {
                return ((kimlikRow)(this.Rows.Find(new object[] {
                            Numara})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                kimlikDataTable cln = ((kimlikDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new kimlikDataTable();
            }
            
            internal void InitVars() {
                this.columnAd = this.Columns["Ad"];
                this.columnAdres = this.Columns["Adres"];
                this.columnAile = this.Columns["Aile"];
                this.columnAnne = this.Columns["Anne"];
                this.columnBaba = this.Columns["Baba"];
                this.columnBitLise = this.Columns["BitLise"];
                this.columnCilt = this.Columns["Cilt"];
                this.columnDTarihi = this.Columns["DTarihi"];
                this.columnDYeri = this.Columns["DYeri"];
                this.columnEMail = this.Columns["EMail"];
                this.columnIlceKod = this.Columns["IlceKod"];
                this.columnIlKod = this.Columns["IlKod"];
                this.columnMahKoy = this.Columns["MahKoy"];
                this.columnNumara = this.Columns["Numara"];
                this.columnSira = this.Columns["Sira"];
                this.columnSoyad = this.Columns["Soyad"];
                this.columnTel = this.Columns["Tel"];
            }
            
            private void InitClass() {
                this.columnAd = new DataColumn("Ad", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAd);
                this.columnAdres = new DataColumn("Adres", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAdres);
                this.columnAile = new DataColumn("Aile", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAile);
                this.columnAnne = new DataColumn("Anne", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAnne);
                this.columnBaba = new DataColumn("Baba", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnBaba);
                this.columnBitLise = new DataColumn("BitLise", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnBitLise);
                this.columnCilt = new DataColumn("Cilt", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCilt);
                this.columnDTarihi = new DataColumn("DTarihi", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnDTarihi);
                this.columnDYeri = new DataColumn("DYeri", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnDYeri);
                this.columnEMail = new DataColumn("EMail", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnEMail);
                this.columnIlceKod = new DataColumn("IlceKod", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnIlceKod);
                this.columnIlKod = new DataColumn("IlKod", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnIlKod);
                this.columnMahKoy = new DataColumn("MahKoy", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMahKoy);
                this.columnNumara = new DataColumn("Numara", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnNumara);
                this.columnSira = new DataColumn("Sira", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSira);
                this.columnSoyad = new DataColumn("Soyad", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSoyad);
                this.columnTel = new DataColumn("Tel", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTel);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columnNumara}, true));
                this.columnNumara.AllowDBNull = false;
                this.columnNumara.Unique = true;
            }
            
            public kimlikRow NewkimlikRow() {
                return ((kimlikRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new kimlikRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(kimlikRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.kimlikRowChanged != null)) {
                    this.kimlikRowChanged(this, new kimlikRowChangeEvent(((kimlikRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.kimlikRowChanging != null)) {
                    this.kimlikRowChanging(this, new kimlikRowChangeEvent(((kimlikRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.kimlikRowDeleted != null)) {
                    this.kimlikRowDeleted(this, new kimlikRowChangeEvent(((kimlikRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.kimlikRowDeleting != null)) {
                    this.kimlikRowDeleting(this, new kimlikRowChangeEvent(((kimlikRow)(e.Row)), e.Action));
                }
            }
            
            public void RemovekimlikRow(kimlikRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class kimlikRow : DataRow {
            
            private kimlikDataTable tablekimlik;
            
            internal kimlikRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tablekimlik = ((kimlikDataTable)(this.Table));
            }
            
            public string Ad {
                get {
                    try {
                        return ((string)(this[this.tablekimlik.AdColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tablekimlik.AdColumn] = value;
                }
            }
            
            public string Adres {
                get {
                    try {
                        return ((string)(this[this.tablekimlik.AdresColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tablekimlik.AdresColumn] = value;
                }
            }
            
            public string Aile {
                get {
                    try {
                        return ((string)(this[this.tablekimlik.AileColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tablekimlik.AileColumn] = value;
                }
            }
            
            public string Anne {
                get {
                    try {
                        return ((string)(this[this.tablekimlik.AnneColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tablekimlik.AnneColumn] = value;
                }
            }
            
            public string Baba {
                get {
                    try {
                        return ((string)(this[this.tablekimlik.BabaColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tablekimlik.BabaColumn] = value;
                }
            }
            
            public string BitLise {
                get {
                    try {
                        return ((string)(this[this.tablekimlik.BitLiseColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tablekimlik.BitLiseColumn] = value;
                }
            }
            
            public string Cilt {
                get {
                    try {
                        return ((string)(this[this.tablekimlik.CiltColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tablekimlik.CiltColumn] = value;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -