Ejemplo n.º 1
0
        public MainPage()
        {
            this.InitializeComponent();

            fileSetting = TextToFileSetting(fileSettingStr);
            randomSetting = TextToRandomSetting(randomSettingStr);
            serialSetting = TextToSerialSetting(serialSettingStr);
            remoteSetting = TextToRemoteSetting(remoteSettingStr);

            comboBoxDataSource.Items.Add(DataSourceFileStr);
            comboBoxDataSource.Items.Add(DataSourceSerialStr);
            comboBoxDataSource.Items.Add(DataSourceRandomStr);
            comboBoxDataSource.Items.Add(DataSourceRemoteClientStr);

            comboBoxStreaming.Items.Add(StreamNothingStr);
            comboBoxStreaming.Items.Add(StreamLogStr);
            comboBoxStreaming.Items.Add(StreamPowerStr);
            comboBoxStreaming.Items.Add(StreamBothStr);
            comboBoxStreaming.Items.Add(StreamRealDataStr);

            dTimerUpdateData = new DispatcherTimer();
            dTimerUpdateData.Tick += UpdateDataTick;
            dTimerUpdateData.Interval = new TimeSpan(0, 0, 0, 0, 250);
            dTimerUpdateData.Start();

            dTimerUpdateText = new DispatcherTimer();
            dTimerUpdateText.Tick += UpdateTextTick;
            dTimerUpdateText.Interval = new TimeSpan(0, 0, 0, 1, 0);

        }
Ejemplo n.º 2
0
        public AOUSerialData(AOUSettings.SerialSetting serialSetting, AOUSettings.DebugMode dbgMode = AOUSettings.DebugMode.noDebug) : base(dbgMode)
        {
            deviceList = new List <string>();

            setting = serialSetting;
        }
Ejemplo n.º 3
0
 public AOURouter(AOUSettings.SerialSetting serialSetting, AOUSettings.DebugMode dbgMode) : this()
 {
     runMode = RunType.Serial;
     aouData = new AOUSerialData(serialSetting, dbgMode);
     aouData.Connect();
 }
Ejemplo n.º 4
0
        public AOUSerialData(AOUSettings.SerialSetting serialSetting, AOUSettings.DebugMode dbgMode = AOUSettings.DebugMode.noDebug) : base(dbgMode)
        {
            deviceList = new List<string>();

            setting = serialSetting;
        }