private void alertSource_CurrentChanged(object sender, EventArgs e) { try { informationEd.Text = ""; if (this.alertSource.Current == null) { return; } informationEd.Text = AppLibs.AlertMessageText(this.myCurrentRow.msg); } catch (Exception er) { this.ShowError(er); } }
public virtual void LoadData(bool force) { databases.baseDS.tradeAlertDataTable tradeAlertTbl = DataAccess.Libs.GetTradeAlert_BySQL(myAlertFilterForm.GetSQL()); for (int idx = 0; idx < tradeAlertTbl.Count; idx++) { if (tradeAlertTbl[idx].RowState == DataRowState.Deleted) { continue; } tradeAlertTbl[idx].msg = AppLibs.AlertMessageText(tradeAlertTbl[idx].msg, " "); } tradeAlertSource.DataSource = tradeAlertTbl; alertSummarySource.DataSource = AppLibs.MakeAlertSummary(tradeAlertSource.DataSource as databases.baseDS.tradeAlertDataTable); SetDataGrid(); ShowReccount(alertSummarySource.Count); }