public BitkyMainWindow()
        {
            InitializeComponent();
            Console.WriteLine("程序开启");
            _commPresenter = new CommPresenter(this);
            if (!_commPresenter.CheckTable())
            {
                LabelDataOutlineShow.Content = "请使用电极选择器选择待测电极";
            }

            InitBitkyPoleShow();
            InitWifiSerialPortShow();
            _commPresenter.GetPreferences();
        }
Exemplo n.º 2
0
        public CommucationFacade(ICommPresenter presenter)
        {
            _presenter           = presenter;
            _myTcpClient         = new BitkyTcpClient(this);
            _myPortClient        = new SerialPortClient(this);
            _controlFrameBuilder = new ControlFrameBuilder();
            _frameProvider       = new FrameProvider();

            //子帧收集计时器
            _timerFrameCollect = new Timer(PresetInfo.FrameReceiveTimeout)
            {
                AutoReset = false
            };
            _timerFrameCollect.Elapsed += FrameCollect;
        }
 public DataExportWindow(ICommPresenter commPresenter1)
 {
     _commPresenter = commPresenter1;
     InitializeComponent();
 }
 public SqlPresenter(ICommPresenter presenter)
 {
     _commPresenter = presenter;
     _sqliteBitky   = new SqliteBitky(this);
 }