public void LoadNode(ItemData.ItemModData node, Func <bool> callback, object saveFileObj) { activeNode = node; callbackFunc = callback; activeSaveFile = (SaveFileHelper)saveFileObj; attachmentNameLabel.Text = node.AttachmentSlotTdbId.Name; attachmentIdBox.Text = node.AttachmentSlotTdbId.Raw64.ToString(); if (node.ItemTdbId.GameName.Length > 0) { item1NameLabel.Text = node.ItemTdbId.GameName; } else { item1NameLabel.Text = node.ItemTdbId.Name; } item1IdBox.Text = node.ItemTdbId.Raw64.ToString(); unknownIDBox.Text = node.TdbId2.Raw64.ToString(); unknown1Box.Text = node.Unknown2.ToString(); unknown2Box.Text = node.Unknown3.ToString(); unknown3Box.Text = node.Unknown4.ToString(); unknown4Box.Text = node.UnknownString; object resolvedStats = null; if (Form1.statsSystemEnabled) { resolvedStats = activeSaveFile.GetStatsFromSeed(node.Header.Seed); } if (resolvedStats != null) { resolvedItemLabel.Text = "View Details"; } else { resolvedItemLabel.Enabled = false; } this.Text = node.AttachmentSlotTdbId.Name + " :: " + node.ItemTdbId.Name; this.ShowDialog(); }