Skip to content

Commit

Permalink
Add 'Refresh instances' command to zone group
Browse files Browse the repository at this point in the history
Change-Id: Id8bfaf5f8b82fc1f26b980989b80fedec9874a02
  • Loading branch information
Johannes Passing authored and jpassing committed Jan 2, 2020
1 parent 39a7b90 commit 0422adc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Google.Solutions.CloudIap.Plugin/Gui/PluginEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,16 @@ public void OnContextMenu(System.Windows.Forms.ContextMenuStrip contextMenuStrip
contextMenuStrip.Items.Insert(contextMenuStrip.Items.Count - 1, loadServers);
contextMenuStrip.Items.Insert(contextMenuStrip.Items.Count - 1, new ToolStripSeparator());
}
else if (node is Group && node.Parent != null && node.Parent is FileGroup parentFileGroup)
{
ToolStripMenuItem loadServers = new ToolStripMenuItem(
$"Refresh GCE &instances from {parentFileGroup.Text}",
Resources.DownloadWebSetting.WithMagentaAsTransparent());
loadServers.Click += (sender, args) => this.OnLoadServersClick(parentFileGroup);

contextMenuStrip.Items.Insert(contextMenuStrip.Items.Count - 1, loadServers);
contextMenuStrip.Items.Insert(contextMenuStrip.Items.Count - 1, new ToolStripSeparator());
}
else if (node is Server server && node.Parent != null && node.Parent is Group)
{
ToolStripMenuItem iapConnect = new ToolStripMenuItem(
Expand Down

0 comments on commit 0422adc

Please sign in to comment.