コード例 #1
0
        private void btnConfigure_Clicked(object sender, RoutedEventArgs e)
        {
            if (!StartedService)
            {
                return;
            }
            DetectorOperationMode mode = (this.rbNormal.IsChecked == true) ? DetectorOperationMode.NORMAL : DetectorOperationMode.BINDING;
            byte fps = Convert.ToByte(this.tbFPS.Text);
            byte nof = Convert.ToByte(this.tbNumOfFrame.Text);
            DetectorConfiguration msg = new DetectorConfiguration(mode, fps, nof);

            this.mDetectorService.processInnerMessage(msg);
        }
コード例 #2
0
        public Station(string _config)
        {
            Configuration = new Configuration(_config);

            IsSelected = false;

            string slv_ver = Configuration.GetString("slv_version").Replace("\"", "").Replace("    ", "-");

            if (slv_ver == "Hardware: 0-FPGA: 0")
            {
                DetectorConfiguration = DetectorConfiguration.MasterOnly;
            }
            else
            {
                DetectorConfiguration = DetectorConfiguration.MasterAndSlave;
            }
        }