private void button4_Click(object sender, EventArgs e) { SelectImage.Title = "Select Icon"; if (SelectImage.ShowDialog() != DialogResult.OK) { return; } File.Copy(SelectImage.FileName, DumpDirectory + @"preview.png", true); IconLabel.Text = "Current Icon:\n" + Path.GetFileNameWithoutExtension(SelectImage.FileName); button4.Text = "Change Icon"; }
private void button3_Click(object sender, EventArgs e) { SelectImage.Title = "Select Thumbnail"; if (SelectImage.ShowDialog() != DialogResult.OK) { return; } File.Copy(SelectImage.FileName, DumpDirectory + @"screenshot.png", true); ThumbnailLabel.Text = "Current Thumbnail:\n" + Path.GetFileNameWithoutExtension(SelectImage.FileName); button3.Text = "Change Steam Thumbnail"; }
private void CustomClick(object sender, EventArgs e) { SelectImage?.Invoke(this, e); IsSelect = true; }
public void ClickSelectImage() { SelectImage.Click(); }