コード例 #1
0
 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 = "";
     }
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 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();
     }
 }