Exemple #1
0
        /// <summary>
        /// 历史查询时间 - 改变
        /// </summary>
        /// <param name="d"></param>
        /// <param name="e"></param>
        private static void OnTimeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            VideoStateAxisControl AxisOb = d as VideoStateAxisControl;

            if (AxisOb != null)
            {
                AxisOb.InitializeAxis();
            }
        }
Exemple #2
0
        /// <summary>
        /// 历史视频来源 - 改变
        /// </summary>
        /// <param name="d"></param>
        /// <param name="e"></param>
        private static void OnHistoryVideoSourcesChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            VideoStateAxisControl AxisOb = d as VideoStateAxisControl;

            if (AxisOb.HisVideoSources != null && AxisOb.HisVideoSources.Count() > 0)
            {
                AxisOb.InitializeAxis();
            }
            AxisOb.HisVideoSources.CollectionChanged += (s, o) =>
            {
                AxisOb.AddHisPie();
                AxisOb.InitiaListBox_ScrollChanged();
            };
        }