| | |
| | | using Yw; |
| | | using DevExpress.XtraEditors; |
| | | using Yw; |
| | | using Yw.WinFrmUI; |
| | | |
| | | |
| | |
| | | public partial class IBoxFormLog : DocumentPage |
| | | { |
| | | |
| | | private string startCode = "[&start&]"; |
| | | private string endCode = "[&end&]"; |
| | | private string paramCode = "[¶m&]"; |
| | | private string getlogCode = "getlog"; |
| | | private string clearlogCode = "clearlog"; |
| | | |
| | | public IBoxFormLog() |
| | | { |
| | | this.PageTitle.Caption = "日志管理"; |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | public void HideButton() |
| | | { |
| | | simpleButton1.Visible = simpleButton2.Visible = false; |
| | | } |
| | | |
| | | private void EboxFormLog_Load(object sender, EventArgs e) |
| | |
| | | LogResult = "" |
| | | }; |
| | | |
| | | SendText(startCode + getlogCode + paramCode + JsonHelper.Object2Json(m) + endCode); |
| | | SendText(IBoxHelper.startCode + IBoxHelper.getlogCode + IBoxHelper.paramCode + JsonHelper.Object2Json(m) + IBoxHelper.endCode); |
| | | } |
| | | |
| | | public void SetData() |
| | |
| | | LogEvent = imageComboBoxEdit1.EditValue?.ToString() |
| | | }; |
| | | |
| | | SendText(startCode + getlogCode + paramCode + JsonHelper.Object2Json(m) + endCode); |
| | | SendText(IBoxHelper.startCode + IBoxHelper.getlogCode + IBoxHelper.paramCode + JsonHelper.Object2Json(m) + IBoxHelper.endCode); |
| | | } |
| | | |
| | | private void simpleButton2_Click(object sender, EventArgs e) |
| | |
| | | eboxLogViewModelBindingSource.DataSource = null; |
| | | this.gridView1.RefreshData(); |
| | | })); |
| | | SendText(startCode + clearlogCode + paramCode + endCode); |
| | | SendText(IBoxHelper.startCode + IBoxHelper.clearlogCode + IBoxHelper.paramCode + IBoxHelper.endCode); |
| | | } |
| | | |
| | | private void gridView1_CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e) |