/// <summary>
 /// We have received a Callback for db change notification from one or other of the GridViewers
 /// so we need to update OURSELVES
 /// </summary>
 /// <param name="sender"></param>
 public void DbHasChangedHandler(SqlDbViewer sender, DataGrid Grid, DataChangeArgs args)
 {
     if (Flags.SqlBankViewer != null)
     {
         Flags.SqlBankViewer.ReloadBankOnUpdateNotification(sender, Grid, args);
     }
     if (Flags.SqlCustViewer != null)
     {
         Flags.SqlCustViewer.ReloadCustomerOnUpdateNotification(sender, Grid, args);
     }
     if (Flags.SqlDetViewer != null)
     {
         Flags.SqlDetViewer.ReloadDetailsOnUpdateNotification(sender, Grid, args);
     }
     return;
 }
Ejemplo n.º 2
0
 public static void TriggerNotifyOfDataChange(SqlDbViewer sender, DataGrid Grid, DataChangeArgs args)
 {
     NotifyOfDataChange?.Invoke(sender, Grid, args);
 }