20 lines
398 B
C#
20 lines
398 B
C#
|
using Eto.Forms;
|
||
|
|
||
|
namespace UpToolEto.Forms
|
||
|
{
|
||
|
public class StringDialog : Dialog
|
||
|
{
|
||
|
private readonly TextBox _tb;
|
||
|
public string Text
|
||
|
{
|
||
|
get => _tb.Text;
|
||
|
set => _tb.Text = value;
|
||
|
}
|
||
|
public StringDialog(string title)
|
||
|
{
|
||
|
_tb = new TextBox();
|
||
|
Content = _tb;
|
||
|
Title = title;
|
||
|
}
|
||
|
}
|
||
|
}
|