Cannot change a wireless link

This commit is contained in:
Tim Young 2018-02-17 11:44:47 +00:00
parent b72c006915
commit bedceb9113

View File

@ -948,10 +948,12 @@ namespace EduNetworkBuilder
pbNetworkView.ContextMenuStrip.Items[index].Tag = LinkReleasedOn;
pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_RemoveNetLink_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);