void Process_Tanggapin() { ClsMayari Obj_Mayari = new ClsMayari(null); Obj_Mayari.Load(); Obj_Mayari.pDr_RowProperty["Name"] = this.Txt_Pangalan.Text; Obj_Mayari.Save(); this.DialogResult = DialogResult.OK; }
void Test_Form2_Load(object sender, EventArgs e) { Do_Globals.gSettings.pConnectionString = @"User ID=sa; Password=Administrator1; Initial Catalog=Damit; Data Source=.\SQL_2K8R2;"; ClsBindGrid GridDef = new ClsBindGrid(); GridDef.pColumns.Add(new ClsBindGridColumn("Name")); GridDef.pColumns.Add(new ClsBindGridColumn("Code")); ClsMayari Obj = new ClsMayari(null); this.ucFilter1.Setup(this.ucGrid1, GridDef, Obj.List_Empty()); this.ucGrid1.Setup_FromBase("Test", Obj, GridDef, new List<string>() { "MayariID" }, false, true, true); }
public void Login_Mayari(Int64 MayariID) { Keys Key = new Keys(); Key.Add("MayariID", MayariID); ClsMayari Obj_Mayari = new ClsMayari(null); Obj_Mayari.Load(Key); this.mDr_Mayari = Obj_Mayari.pDr; this.pIsLoggedIn = true; }
void SetupForm_Bind() { this.mObj_Mayari = new ClsMayari(null); Layer01_Methods.BindCombo(this.Cbo_Mayari, this.mObj_Mayari.List(), "Name", "MayariID"); }