Skip to content

Commit

Permalink
someone has focus?
Browse files Browse the repository at this point in the history
  • Loading branch information
igorseabra4 committed Nov 29, 2018
1 parent c5be255 commit c91bab5
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions IndustrialPark/MainForm/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c91bab5

Please sign in to comment.