From bedceb91134920c7e3f32859cf367dc398573e52 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Sat, 17 Feb 2018 11:44:47 +0000 Subject: [PATCH] Cannot change a wireless link --- EduNetworkBuilder/NetworkBuilder.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index 75b16cc..f79084b 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -948,10 +948,12 @@ namespace EduNetworkBuilder pbNetworkView.ContextMenuStrip.Items[index].Tag = LinkReleasedOn; pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_RemoveNetLink_Click; - pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("_Edit")); - pbNetworkView.ContextMenuStrip.Items[index].Tag = LinkReleasedOn; - pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_EditNetLink_Click; - + if (LinkReleasedOn.theLinkType != LinkType.wireless) + { + pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("_Edit")); + pbNetworkView.ContextMenuStrip.Items[index].Tag = LinkReleasedOn; + pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_EditNetLink_Click; + } pbNetworkView.ContextMenuStrip.Visible = true; pbNetworkView.ContextMenuStrip.Show(Cursor.Position);