Files
ChanSort/source/ChanSort/TextInputForm.cs
Horst Beham bd19d94686 - Philips: show and edit customized titles of favorite lists
- fixed non-unique numbers in mixed-source favorite lists when using "Add to Fav A" (Panasonic, Hisense, Sony, Philips)
- function to reorder channels from 1-x is now reordering all channels when only a single one was selected
- function to sort channels by name is now reordering all channels when only a single one was selected
2020-02-11 21:06:37 +01:00

32 lines
673 B
C#

using System.Windows.Forms;
using DevExpress.XtraEditors;
namespace ChanSort.Ui
{
public partial class TextInputForm : XtraForm
{
public TextInputForm()
{
InitializeComponent();
}
private void textEdit_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
this.DialogResult = DialogResult.Cancel;
else if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return)
this.DialogResult = DialogResult.OK;
}
public override string Text
{
get => this.textEdit?.Text ?? "";
set
{
if (this.textEdit != null)
this.textEdit.Text = value;
}
}
}
}