Exemplo n.º 1
0
        /// <summary>
        /// 进行获得图表的一次运行时发生
        /// </summary>
        /// <param name="sender">发送源</param>
        /// <param name="e">事件</param>
        private void OnSimulateDataModelDraw(object sender, SimulateDataModelEventArgs e)
        {
            double timestart = e.TimeStart;
            double timeend   = e.TimeEnd;

            smanager.RunDraw(timestart, timeend);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 当仿真dll的RunData方法完成时发生,用于绘制波形
 /// </summary>
 /// <param name="sender">发送源</param>
 /// <param name="e">事件</param>
 private void OnRunDataFinished(object sender, SimulateDataModelEventArgs e)
 {
     if (RunDataFinished != null)
     {
         RunDataFinished(this, e);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// 当创建新的XY坐标图表时发生
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnSimuViewXYModelCreate(object sender, SimulateDataModelEventArgs e)
        {
            SimuViewXYModel xychart = new SimuViewXYModel(e.SDModels, (int)(e.TimeStart), (int)(e.TimeEnd));

            xychart.Name = String.Format("坐标图{0:d}", SubCharts.Count());
            SubCharts.Add(xychart);
            TreeViewItem tvitem = new TreeViewItem();

            tvitem.Header            = xychart.Name;
            tvitem.MouseDoubleClick += OnProjectTreeDoubleClicked;
            TreeViewItem TVI_Chart = PTView.TVI_Chart;

            TVI_Chart.Items.Add(tvitem);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 变量数据模型解除监视时发生
        /// </summary>
        /// <param name="sender">发送源</param>
        /// <param name="e">事件</param>
        private void OnSimulateDataModelUnview(object sender, SimulateDataModelEventArgs e)
        {
            SimulateDataModel sdmodel = e.SDModel_new;

            smanager.Unview(sdmodel);
        }