示例#1
0
 private void 停止同步数据ToolStripMenuItemClick(object sender, EventArgs e)
 {
     DeviceAdapter.Stop();
     步数据ToolStripMenuItem.Enabled    = true;
     停止同步数据ToolStripMenuItem.Enabled = false;
     timer1.Enabled = false;
 }
        public void AdapterTest()
        {
            IDevice device = new DeviceAdapter();

            device.Start();

            Assert.IsTrue(device.IsRunning);

            device.Stop();
            Assert.IsFalse(device.IsRunning);
        }
示例#3
0
 protected override void OnStop()
 {
     device.Stop();
 }