using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Text;
|
using System.Windows.Forms;
|
using DevExpress.XtraEditors;
|
|
namespace IStation.WinFrmUI
|
{
|
public partial class InputString4SearchDlg : DevExpress.XtraEditors.XtraForm
|
{
|
public InputString4SearchDlg()
|
{
|
InitializeComponent();
|
lblInfo.Text = "";
|
}
|
|
|
public string InfoLabelText { set { lblInfo.Text = value; } }
|
public string StringText { get { return searchControl1.Text; } set { searchControl1.Text = value; } }
|
private void simpleButton2_Click(object sender, EventArgs e)
|
{
|
this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
this.Close();
|
}
|
|
public void SetList(List<string> list)
|
{
|
foreach (var m in list)
|
searchControl1.Properties.Items.Add(m);
|
}
|
public void ClearList( )
|
{
|
|
searchControl1.Properties.Items.Clear();
|
}
|
|
private void simpleButton1_Click(object sender, EventArgs e)
|
{
|
this.DialogResult = System.Windows.Forms.DialogResult.OK;
|
this.Close();
|
}
|
|
private void SetContentDlg_Load(object sender, EventArgs e)
|
{
|
//lblInfo.Text = "123456";
|
lblInfo.ForeColor = Color.White;
|
this.BackColor = Color.Gray;// Color.FromArgb(30, Color.Gray);
|
// this.BackColor = Color.Transparent;
|
// this.tableLayoutPanel1.BackColor = Color.Transparent;// Color.FromArgb(10, Color.Blue);
|
this.AcceptButton = simpleButton3;
|
|
searchControl1.Focus();
|
}
|
}
|
}
|