// 切换到实时数据
        private void EventPublisher_ChangedToRealTimeEvent(object sender, EventArgs e)
        {
            StartStop(false);

            globeBusiness.ClearRealData();
            gmapBusiness.ClearRealData();

            progressBar1.Value = progressBar1.Maximum;
            Utils.Mode         = ShowMode.REAL_TIME;
        }
Exemple #2
0
        /// <summary>
        /// 删除所有目标
        /// </summary>
        private void ClearListDelegate()
        {
            try
            {
                if (dataLst != null)
                {
                    dataLst.Clear();
                    gcRealData.RefreshDataSource();
                    //TODO:清空

                    globeBusiness.ClearRealData();
                    mapBusiness.ClearRealData();
                }
            }
            catch (Exception ex)
            {
                Log4Allen.WriteLog(typeof(RealDataListControl), ex.Message);
            }
        }