43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using KssSmaPlaLib.Forms;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Data.Entity.Core.Mapping;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace KssSmaPlaLib.Input.Gamen
|
|
{
|
|
public partial class TextInputForm : Form
|
|
{
|
|
public string EditedText { get; set; } = string.Empty;
|
|
|
|
public TextInputForm(string text, char passwordChar = (char)0)
|
|
{
|
|
InitializeComponent();
|
|
|
|
TextText.PasswordChar = passwordChar;
|
|
TextText.Text = text;
|
|
}
|
|
|
|
private void TextInputForm_Load(object sender, EventArgs e)
|
|
{
|
|
FormHelper.LoadFormBounds(this);
|
|
}
|
|
|
|
private void TextInputForm_FormClosing(object sender, FormClosingEventArgs e)
|
|
{
|
|
FormHelper.SaveFormBounds(this);
|
|
}
|
|
|
|
private void OkButton_Click(object sender, EventArgs e)
|
|
{
|
|
EditedText = TextText.Text;
|
|
}
|
|
}
|
|
}
|