public SAV_Wondercard(Form1 frm1, byte[] wcdata = null)
{
InitializeComponent();
Util.TranslateInterface(this, Form1.curlanguage);
m_parent = frm1;
Array.Copy(m_parent.savefile, sav, 0x100000);
savindex = m_parent.savindex;
if (m_parent.savegame_oras) wcoffset = 0x22100;
populateWClist();
populateReceived();
LB_WCs.SelectedIndex = 0;
if (LB_Received.Items.Count > 0)
LB_Received.SelectedIndex = 0;
DragEnter += tabMain_DragEnter;
DragDrop += tabMain_DragDrop;
if (wcdata == null || wcdata.Length != 0x108) return; // No data to load
Array.Copy(wcdata, wondercard_data, wcdata.Length);
loadwcdata();
}
Form1 m_parent;