Files
ChanSort/ChanSort/InfoBox.cs
hbeham 8d22767ec2 - cleanup (renamed directories to match project structure)
- tested and fixed Samsung favorites and locks for C,D,AstraHD
2013-04-03 15:01:53 +02:00

35 lines
831 B
C#

using System.Windows.Forms;
using DevExpress.XtraEditors;
namespace ChanSort.Ui
{
public partial class InfoBox : XtraForm
{
public InfoBox()
{
InitializeComponent();
this.ActiveControl = this.simpleButton1;
}
public static void Show(IWin32Window owner, string message, string caption)
{
var box = new InfoBox();
box.Text = caption;
box.txtMessage.Text = message;
box.txtMessage.Properties.ReadOnly = true;
box.txtMessage.SelectionStart = 0;
box.txtMessage.SelectionLength = 0;
box.ShowDialog(owner);
}
protected override bool ProcessDialogKey(Keys keyData)
{
if (keyData == Keys.Escape)
{
this.DialogResult = DialogResult.Cancel;
return true;
}
return base.ProcessDialogKey(keyData);
}
}
}