Exemple #1
0
 public void addContextMenu(DataRow row)
 {
     orderGrid.ifVisible(row, () => {
         var menu = new QContextMenu();
         if (FerretControl.canRelease())
         {
             menu.add("Release", () => orderTracker.releaseMaybe(orderGrid.selectedRows()));
         }
         menu.add("Cancel", () => orderTracker.cancelMaybe(orderGrid.selectedRows()));
         orderGrid.resetContextMenu(row, menu);
     });
 }
Exemple #2
0
 void kill()
 {
     clearRestarts();
     O.each(statusGrid.selectedRows(), row => StatusTracker.kill((int)row["id"]));
 }