using DevExpress.XtraEditors;
|
using Gs.DevApp.ToolBox;
|
using Gs.DevApp.UserControl;
|
using Newtonsoft.Json;
|
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 Gs.DevApp.DevFrm.Work
|
{
|
public partial class textSelect : DevExpress.XtraEditors.XtraUserControl
|
{
|
public textSelect()
|
{
|
InitializeComponent();
|
}
|
|
|
|
/// <summary>
|
/// 总记录数
|
/// </summary>
|
public string BtnTxt
|
{
|
get { return this.simpleButton1.Text.Trim(); }
|
set
|
{
|
this.simpleButton1.Text = value;
|
}
|
}
|
|
|
/// <summary>
|
/// 总记录数
|
/// </summary>
|
public string TextTxt
|
{
|
get { return memoEdit1.Text.Trim(); }
|
set
|
{
|
this.memoEdit1.Text = value;
|
}
|
}
|
|
private void simpleButton1_Click(object sender, EventArgs e)
|
{
|
SelectDictionary frm = new SelectDictionary(this.BtnTxt, "");
|
frm.UpdateParent += (ss, ee) =>
|
{
|
System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();
|
var lst = ee.DynamicList;
|
foreach (dynamic dym in lst)
|
{
|
if (stringBuilder.Length > 0)
|
stringBuilder.Append("|");
|
stringBuilder.Append(dym.dicTxt);
|
}
|
this.TextTxt = stringBuilder.ToString();
|
};
|
frm.ShowDialog();
|
}
|
}
|
}
|