33 lines
786 B
C#
33 lines
786 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ScreenCaptureApp
|
|
{
|
|
public partial class ResultForm : Form
|
|
{
|
|
public ResultForm(Image capturedImage)
|
|
{
|
|
InitializeComponent();
|
|
pictureBox1.Image = capturedImage;
|
|
}
|
|
|
|
private void btnSave_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
|
|
private void btnCopy_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.Yes;
|
|
this.Close();
|
|
}
|
|
|
|
private void btnCancel_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.Cancel;
|
|
this.Close();
|
|
}
|
|
}
|
|
} |