public void Delete() { drow.Delete(); ClsMembersTable c = new ClsMembersTable(); c.Save(); }
public ClsMembers(string id) { ClsMembersTable cmt = new ClsMembersTable(); drow = cmt.Find(id); FillFields(); }
public void Add() { ClsMembersTable ct = new ClsMembersTable(); drow = ct.GetNewRow(); FillDataRow(); ct.AddRow(drow); }
public ClsMembers(string id, string s) { if (s == "ID") { ClsMembersTable cmt = new ClsMembersTable(); drow = cmt.Find(id); FillFields(); } else { ClsMembersTable cmt = new ClsMembersTable(); //drow = cmt.Find("LastName" + "FirstName", id); drow = cmt.Find("LastAndFirstName", id); FillFields(); } }
public void Update() { FillDataRow(); Bll.ClsMembersTable c = new ClsMembersTable(); c.Save(); }