Beispiel #1
0
 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); }
 }
Beispiel #2
0
 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();
     }
 }
Beispiel #3
0
 public bool Sync_ForeignTables()
 {
     BS_CLIENT.Position = BS_CLIENT.Find("IdCli", DS_Master.Tables["RESERVATION"].Rows[BS_RESERVATION.Position]["IdCli"]);
     return(false);
 }
Beispiel #4
0
 public bool Undo()
 {
     DTR_Client.Delete();
     BS_CLIENT.MoveFirst();
     return(true);
 }
Beispiel #5
0
 public void Go_End()
 {
     BS_CLIENT.MoveLast();
 }
Beispiel #6
0
 public void Go_Forward()
 {
     BS_CLIENT.MoveNext();
 }
Beispiel #7
0
 public void Go_Back()
 {
     BS_CLIENT.MovePrevious();
 }
Beispiel #8
0
 public void Go_Start()
 {
     BS_CLIENT.MoveFirst();
 }