public void Sync_ForeignTables() { try { if (BS_CLIENT.DataSource != null) { BS_CLIENT.Position = BS_CLIENT.Find("IdCli", ds_master.Tables["ARRIVE"].Rows[BS_ARRIVE.Position]["IdCli"]); } if (BS_RESERVATION.DataSource != null) { BS_RESERVATION.Position = BS_RESERVATION.Find("IdReser", ds_master.Tables["ARRIVE"].Rows[BS_ARRIVE.Position]["IdReser"]); } } catch (Exception e) { Console.WriteLine(e.StackTrace); } }
private void Sync_ForeignTables() { if (BS_ARRIVE.Count > 0) { if (BS_CLIENT.DataSource != null) { BS_CLIENT.Position = BS_CLIENT.Find("IdCli", dS_Master.Tables["ARRIVE"].Rows[BS_ARRIVE.Position]["IdCli"]); } if (BS_RESERVATION.DataSource != null) { BS_RESERVATION.Position = BS_RESERVATION.Find("IdReser", dS_Master.Tables["ARRIVE"].Rows[BS_ARRIVE.Position]["IdReser"]); } } else { ir_departs.WipeInformation(); ic_base.WipeInformation(); } }
public bool Sync_ForeignTables() { BS_CLIENT.Position = BS_CLIENT.Find("IdCli", DS_Master.Tables["RESERVATION"].Rows[BS_RESERVATION.Position]["IdCli"]); return(false); }
public bool Undo() { DTR_Client.Delete(); BS_CLIENT.MoveFirst(); return(true); }
public void Go_End() { BS_CLIENT.MoveLast(); }
public void Go_Forward() { BS_CLIENT.MoveNext(); }
public void Go_Back() { BS_CLIENT.MovePrevious(); }
public void Go_Start() { BS_CLIENT.MoveFirst(); }