mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-14 11:22:03 +01:00
- 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
32 lines
673 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|