private void btnBrowseImageNPC_Click(object sender, EventArgs e) { ImportImage tIImg = new ImportImage(); tIImg.ImgPath = IMAGESPATH; tIImg.ShowDialog(); txtImageNPC.Text = tIImg.ImgToReturn; CurrentTemplate.NPCs[dgNPCs.CurrentRow.Index].TextureImg = tIImg.ImgToReturn; }
private void btnImgSelect_Click(object sender, EventArgs e) { ImportImage tIImg = new ImportImage(); tIImg.ImgPath = IMAGESPATH; tIImg.ShowDialog(); txtItemImage.Text = tIImg.ImgToReturn; CurrentTemplate.Items[dgItems.CurrentRow.Index].TextureImg = tIImg.ImgToReturn; }