42 lines
1.1 KiB
C#
42 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 AyaNovaQBI
|
|
{
|
|
public partial class CopyableMessageBox : Form
|
|
{
|
|
private string mDisplay = string.Empty;
|
|
public CopyableMessageBox(string Display)
|
|
{
|
|
InitializeComponent();
|
|
mDisplay=Display;
|
|
Icon = AyaNovaQBI.Properties.Resources.logo;
|
|
btnOK.Text = util.AyaTranslations["OK"];
|
|
}
|
|
|
|
private void btnCopy_Click(object sender, EventArgs e)
|
|
{
|
|
Clipboard.SetData(System.Windows.Forms.DataFormats.Text, mDisplay);
|
|
}
|
|
|
|
private void CopyableMessageBox_Load(object sender, EventArgs e)
|
|
{
|
|
edOut.Text = mDisplay;
|
|
|
|
}
|
|
|
|
private void btnOK_Click(object sender, EventArgs e)
|
|
{
|
|
DialogResult = DialogResult.OK;
|
|
Close();
|
|
}
|
|
}
|
|
}
|