mirror of
https://github.com/SirusDoma/VoxCharger.git
synced 2024-12-01 02:27:25 +01:00
44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace VoxCharger
|
|
{
|
|
public partial class JacketViewerForm : Form
|
|
{
|
|
public JacketViewerForm(Image image)
|
|
{
|
|
InitializeComponent();
|
|
|
|
JacketPictureBox.Size = Size = image.Size;
|
|
JacketPictureBox.Image = image;
|
|
}
|
|
|
|
private void OnJacketFormLoad(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
private void JacketPictureBox_MouseClick(object sender, MouseEventArgs e)
|
|
{
|
|
if (e.Button == MouseButtons.Right)
|
|
{
|
|
using (var browser = new SaveFileDialog())
|
|
{
|
|
browser.Filter = "Image Files|*.png;*.jpg;*.bmp";
|
|
if (browser.ShowDialog() == DialogResult.OK)
|
|
JacketPictureBox.Image.Save(browser.FileName);
|
|
|
|
}
|
|
}
|
|
else
|
|
Close();
|
|
}
|
|
}
|
|
}
|