Skip to content

Commit 3a95ffe

Browse files
committed
Moved methods out of wrong region.
1 parent c945ab4 commit 3a95ffe

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

ReClass.NET/UI/MemoryViewControl.cs

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -377,29 +377,6 @@ protected override void OnMouseDoubleClick(MouseEventArgs e)
377377
base.OnMouseDoubleClick(e);
378378
}
379379

380-
public void ShowNodeNameEditBox(BaseNode node)
381-
{
382-
if (node == null || node is BaseHexNode)
383-
{
384-
return;
385-
}
386-
387-
var hotSpot = hotSpots
388-
.FirstOrDefault(s => s.Node == node && s.Type == HotSpotType.Edit && s.Id == HotSpot.NameId);
389-
if (hotSpot != null)
390-
{
391-
ShowNodeNameEditBox(hotSpot);
392-
}
393-
}
394-
395-
private void ShowNodeNameEditBox(HotSpot hotSpot)
396-
{
397-
editBox.BackColor = Program.Settings.SelectedColor;
398-
editBox.HotSpot = hotSpot;
399-
editBox.Visible = true;
400-
editBox.ReadOnly = hotSpot.Id == HotSpot.ReadOnlyId;
401-
}
402-
403380
private Point toolTipPosition;
404381
protected override void OnMouseHover(EventArgs e)
405382
{
@@ -685,6 +662,29 @@ private void ShowNodeContextMenu(Point location)
685662
NodeContextMenuStrip?.Show(this, location);
686663
}
687664

665+
public void ShowNodeNameEditBox(BaseNode node)
666+
{
667+
if (node == null || node is BaseHexNode)
668+
{
669+
return;
670+
}
671+
672+
var hotSpot = hotSpots
673+
.FirstOrDefault(s => s.Node == node && s.Type == HotSpotType.Edit && s.Id == HotSpot.NameId);
674+
if (hotSpot != null)
675+
{
676+
ShowNodeNameEditBox(hotSpot);
677+
}
678+
}
679+
680+
private void ShowNodeNameEditBox(HotSpot hotSpot)
681+
{
682+
editBox.BackColor = Program.Settings.SelectedColor;
683+
editBox.HotSpot = hotSpot;
684+
editBox.Visible = true;
685+
editBox.ReadOnly = hotSpot.Id == HotSpot.ReadOnlyId;
686+
}
687+
688688
/// <summary>
689689
/// Resets the selection state of all selected nodes.
690690
/// </summary>

0 commit comments

Comments
 (0)