private void ClearBarrier(object sender = null, RoutedEventArgs e = null) { if (MarkLayer != null) { for (int i = 0; i < m_barrierMark.Count; i++) { MarkLayer.RemoveMark(m_barrierMark[i]); } m_barrierMark.Clear(); m_barrierDots = ""; } }
void ClearRoad() { if (m_road != null && GraphicsLayer != null) { GraphicsLayer.RemoveGraphics(m_road); m_road = null; } if (MarkLayer != null) { for (int i = 0; i < m_stopList.Count; i++) { MarkLayer.RemoveMark(m_stopList[i]); } m_stopList.Clear(); } }
public void Clear() { //if (m_road != null && GraphicsLayer != null) //{ // GraphicsLayer.RemoveGraphics(m_road); // m_road = null; //} if (MarkLayer != null) { for (int i = 0; i < m_stopList.Count; i++) { MarkLayer.RemoveMark(m_stopList[i]); } //m_stopList.Clear(); } }
public void close(object sender, RoutedEventArgs e) { if (this.markLayer != null) { for (int i = 0; i < warnMarks.Count; i++) { markLayer.RemoveMark(warnMarks[i]); } warnMarks.Clear(); } if (this.grid.RowCount > 0) { for (int i = 0; i < this.grid.RowCount; i++) { this.grid.DeleteRow(i); } } this.StateNameTextBox.Text = ""; this.Close(); }
private void clear() { if (this.grid.RowCount > 0) { for (int i = 0; i < this.grid.RowCount; i++) { this.grid.DeleteRow(i); } } if (this.searchRlt != null && this.searchRlt.Count > 0) { this.searchRlt.Clear(); } if (this.shopMarks != null && markLayer != null) { for (int i = 0; i < shopMarks.Count; i++) { markLayer.RemoveMark(shopMarks[i]); } shopMarks.Clear(); } }