Exemplo n.º 1
0
        /// <summary>
        /// 显示实时窗体
        /// </summary>
        private void ShowRealtimeForm()
        {
            var configuartion = Repository.Repository.LoadConfiguation();

            if (configuartion.cells.Length == 0)
            {
                MessageBox.Show("无可连接的设备!");
                return;
            }

            CloseRealPlayControl();
            var cell = CellServiceManager.Instance.GetService(configuartion.cells[0].name) as CellService;

            realtimeForm = new RealtimeForm(cell);
            ShowControl(realtimeForm, "实时");
        }
Exemplo n.º 2
0
        /// <summary>
        /// 关闭实时播放控件
        /// </summary>
        private void CloseRealPlayControl()
        {
            if (realtimeForm != null)
            {
                realtimeForm.Close();
                realtimeForm = null;
            }

            if (dataVisualizationForm1 != null)
            {
                dataVisualizationForm1.Close();
                dataVisualizationForm1 = null;
            }

            if (setParameterForm != null)
            {
                setParameterForm.Close();
                setParameterForm = null;
            }
        }