temu客户端程序
This commit is contained in:
commit
4aaf264e89
694 files changed
+263780
No files matched your search
@@ -0,0 +1,54 @@
|
||||
using AllBase;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using NaiBa.Util.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms.ToolForms
|
||||
{
|
||||
public partial class TextForm : LRBaseForm
|
||||
{
|
||||
public string Info { get; set; }
|
||||
public delegate void OnSaveComplete(string msg);
|
||||
public event OnSaveComplete onSaveComplete;
|
||||
public TextForm()
|
||||
{
|
||||
Info = string.Empty;
|
||||
InitializeComponent();
|
||||
}
|
||||
public TextForm(string info)
|
||||
{
|
||||
Info = info;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
onSaveComplete(this.txtInfo.Text.Trim());
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void TextForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (BaseClass.Ico != null)
|
||||
Icon = BaseClass.Ico;
|
||||
this.txtInfo.Text = Info.ParseToString().Trim();
|
||||
}
|
||||
|
||||
private void txtInfo_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Control && e.KeyCode == Keys.A)
|
||||
{
|
||||
((TextBox)sender).SelectAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user