using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Stone.WinModule.BasicData { public partial class frmLog : Stone.WinModule.BasicData.frmBaseMain { public frmLog() { InitializeComponent(); this.tlbAdd.Visible = false; this.tlbAddCopy.Visible = false; this.tlbEdit.Visible = false; this.tlbDelete.Visible = false; this.tlbInput.Visible = false; } public override void Search(string code) { if (code == "") { strWhere = "1=1"; } else { strWhere = "[UserName] like '%" + code + "%'"; strWhere += " or [Message] like '%" + code + "%'"; } } } }