Exemple #1
0
        void loadInstanceRow(DataRow row)
        {
            setStatus(row, tracker.status(row));
            var menu = new QContextMenu("Kill Instance", () => {
                var instanceId = (string)row["instanceId"];
                new Instance(instanceId).shutdown();
                tracker.kill(instanceId);
            });

            instanceGrid.resetContextMenu(row, menu);
        }
Exemple #2
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 #3
0
 void loadStatusRow(DataRow row)
 {
     setHeartbeatStatus(row, statusTracker.status(row));
     statusGrid.resetContextMenu(row, restartMenu(row));
 }
Exemple #4
0
 void loadRow(DataRow row)
 {
     grid.resetContextMenu(row, restartMenu(row));
     setStatus(row, LiveWatcher.status(row));
 }