Пример #1
0
        public FormCalibrate(FormMain formMain, ReplayController controller)
        {
            InitializeComponent();

            this.formMain   = formMain;
            this.controller = controller;
        }
Пример #2
0
        public FormLeadConfig(ReplayController controller)
        {
            InitializeComponent();

            this.controller = controller;

            #region 初始化DatagridView

            dgrdConfig.Columns.AddRange(
                new DataGridViewTextBoxColumn()
            {
                HeaderText   = "编号",
                SortMode     = DataGridViewColumnSortMode.NotSortable,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 60
            }, new DataGridViewTextBoxColumn()
            {
                HeaderText = "FPI",
                SortMode   = DataGridViewColumnSortMode.NotSortable
            }, new DataGridViewTextBoxColumn()
            {
                HeaderText = "FPj",
                SortMode   = DataGridViewColumnSortMode.NotSortable
            }
                );

            #endregion 初始化DatagridView

            // 载入配置列表
            LoadLeadConfig();

            // 初始化编辑界面
            InitLeadEditView();

            // 载入导联图示
            LoadLeadDiagram();
        }
Пример #3
0
        public FormFilterConfig(FormMain formMain, ReplayController controller)
        {
            InitializeComponent();

            this.formMain   = formMain;
            this.controller = controller;

            // 时间常数范围
            this.comboBox_TimeConstant.Items.Clear();
            foreach (float value in this.controller.timeConstantList)
            {
                this.comboBox_TimeConstant.Items.Add(value.ToString());
            }
            this.comboBox_TimeConstant.Text = this.controller.timeConstant.ToString();

            this.checkBoxOrder.Checked = this.controller.isSecondOrderRC;

            this.checkBoxIs50Hz.Checked = this.controller.is50Hz;

            this.checkBoxIsFiler.Checked = this.controller.isFilter;

            // 20171128
            this.comboBox1.Text = FirFilter.trapWaveEdge.ToString();
        }
Пример #4
0
 public void ReigisterNeuroControl(ReplayController controller)
 {
     this.controller = controller;
 }