public void SetHistorySelect(string title) { List <string> lstExistPjnd = this.uctChart1.GetLstExistedPjnd(); List <string> lstExistPjndCopy = new List <string>(); lstExistPjndCopy.AddRange(lstExistPjnd); FrmHistoryPreline frmHistoryPreline = new FrmHistoryPreline(uctChart1.decParams.ProID, uctChart1.decParams.Pjnd, uctChart1.decParams.Dydm, uctChart1.StudyType, lstExistPjndCopy); frmHistoryPreline.Text = title; if (frmHistoryPreline.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { //先删除n条(n∈[0,+∞))预测线 List <string> lstNeedDelPjnd = GetOnlyBelongA(lstExistPjnd, frmHistoryPreline.LstNeedAddPjnd); if (lstNeedDelPjnd != null && lstNeedDelPjnd.Count > 0) { uctChart1.RemovePreLinesByChart(lstNeedDelPjnd); } //再添加n条(n∈[0,+∞))预测线 List <string> lstNeedAddPjnd = GetOnlyBelongA(frmHistoryPreline.LstNeedAddPjnd, lstExistPjnd); if (lstNeedAddPjnd != null && lstNeedAddPjnd.Count > 0) { uctChart1.AppendPreLinesByChart(lstNeedAddPjnd); } uctDecStatus1_VisibleChanged(null, null); this.RefreshBDChart(); } }
void uctChart1_SetLstBiaoDingResultVisible(object sender, EventArgs e) { List <string> lstExistPjnd = this.uctChart1.GetLstExistedPjndFromLstBiaoDing(); List <string> lstExistPjndCopy = new List <string>(); lstExistPjndCopy.AddRange(lstExistPjnd); FrmHistoryPreline frmHistoryPreline = new FrmHistoryPreline(uctChart1.decParams.ProID, uctChart1.decParams.Pjnd, uctChart1.decParams.Dydm, uctChart1.StudyType, lstExistPjndCopy); if (sender != null) { frmHistoryPreline.Text = sender.ToString(); } if (frmHistoryPreline.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { //删除n条(n∈[0,+∞))标定信息 List <string> lstNeedDelPjnd = GetOnlyBelongA(lstExistPjnd, frmHistoryPreline.LstNeedAddPjnd); if (lstNeedDelPjnd != null && lstNeedDelPjnd.Count > 0) { uctChart1.RemoveLstBiaoDing(lstNeedDelPjnd); } //添加n条(n∈[0,+∞))标定信息 List <string> lstNeedAddPjnd = GetOnlyBelongA(frmHistoryPreline.LstNeedAddPjnd, lstExistPjnd); if (lstNeedAddPjnd != null && lstNeedAddPjnd.Count > 0) { uctChart1.AppendLstBiaoDing(lstNeedAddPjnd); } } }