From c91bab571520773cf14b3be48fa5fc6dc325478d Mon Sep 17 00:00:00 2001 From: igorseabra4 Date: Thu, 29 Nov 2018 18:39:52 -0300 Subject: [PATCH] someone has focus? --- IndustrialPark/MainForm/MainForm.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/IndustrialPark/MainForm/MainForm.cs b/IndustrialPark/MainForm/MainForm.cs index d6f833a1..fffc1bc8 100644 --- a/IndustrialPark/MainForm/MainForm.cs +++ b/IndustrialPark/MainForm/MainForm.cs @@ -655,8 +655,7 @@ private void renderPanel_MouseClick(object sender, MouseEventArgs e) } else if (e.Button == MouseButtons.Right) { - if (SomeoneHasTemplateFocus) - contextMenuStripMain.Show(renderPanel.PointToScreen(e.Location)); + contextMenuStripMain.Show(renderPanel.PointToScreen(e.Location)); } } @@ -906,18 +905,7 @@ public void ClearTemplateFocus() foreach (ArchiveEditor archiveEditor in archiveEditors) archiveEditor.TemplateFocusOff(); } - - public bool SomeoneHasTemplateFocus - { - get - { - foreach (ArchiveEditor archiveEditor in archiveEditors) - if (archiveEditor.TemplateFocus) - return true; - return false; - } - } - + private void useLegacyAssetIDFormatToolStripMenuItem_Click(object sender, EventArgs e) { useLegacyAssetIDFormatToolStripMenuItem.Checked = !useLegacyAssetIDFormatToolStripMenuItem.Checked;