Ejemplo n.º 1
0
        /// <summary>
        /// 显示参数设置窗体
        /// </summary>
        private void ShowParameterSetConfigForm()
        {
            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;

            setParameterForm = new SetParameterForm(cell);
            ShowControl(setParameterForm, "参数设置");
        }
Ejemplo 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;
            }
        }