void CustListViewItemSelectionSelectedIndexChanged(object sender, EventArgs e)
{
if (custListViewItemSelection.SelectedIndices.Count > 0)
{
int itemNo = Int32.Parse(custListViewItemSelection.Items[custListViewItemSelection.SelectedIndices[0]].Text);
Item itemEntry = controlModule.Items[itemNo];
System.Resources.ResourceManager res = new System.Resources.ResourceManager(
"AtelierElieScripter.Res.AlchemyItems",
System.Reflection.Assembly.GetExecutingAssembly()
);
pictureBoxName.Image = (Bitmap)res.GetObject(String.Format("{0:000}_1", itemNo));
pictureBoxPic.Image = (Bitmap)res.GetObject(String.Format("{0:000}_0", itemNo));
textBoxDescJap.Enabled = true;
textBoxDescTrans.Enabled = true;
textBoxNameOrig.Enabled = true;
textBoxNameTrans.Enabled = true;
textBoxNotes.Enabled = true;
textBoxDescJap.Text = itemEntry.textDescJap;
textBoxDescTrans.Text = itemEntry.textDescEng.Replace("\\n", Environment.NewLine);
textBoxNameOrig.Text = itemEntry.textJap;
textBoxNameTrans.Text = itemEntry.textEng;
textBoxNotes.Text = itemEntry.textNote;
panelDescOrig.InvalidateEx();
panelDescTrans.InvalidateEx();
panelNameOrig.InvalidateEx();
panelNameTrans.InvalidateEx();
}
else
{
DisableInputs();
}
}