/// <summary> /// 删除K线 /// </summary> private void Delete() { ChartA chart = m_chart.Chart; CTable dataSource = chart.DataSource; int rowsCount = dataSource.RowsCount; if (rowsCount > 0) { dataSource.RemoveAt(rowsCount - 1); } List <CIndicator> indicators = m_chart.Indicators; int indicatorsSize = indicators.Count; for (int i = 0; i < indicatorsSize; i++) { indicators[i].OnCalculate(0); } CreateNextData(false); m_chart.Chart.Update(); m_native.Invalidate(); }