Exemplo n.º 1
0
 private bool StartServer()
 {
     try
     {
         bootstrap = BootstrapFactory.CreateBootstrap();
         if (!bootstrap.Initialize())
         {
             return(false);
         }
         var result = bootstrap.Start();
         if (result == StartResult.Failed)
         {
             return(false);
         }
     }
     catch (Exception e)
     {
         MessageBox.Show("采集服务启动失败");
         return(false);
     }
     ds = new DeviceService(bootstrap);
     return(true);
 }
Exemplo n.º 2
0
 public TempFrm(DeviceDTO dev, DeviceService ds)
 {
     InitializeComponent();
     this.dev = dev;
     this.ds  = ds;
 }
Exemplo n.º 3
0
 public HubSettingFrm(DeviceDTO dev, DeviceService ds)
 {
     InitializeComponent();
     this.dev = dev;
     this.ds  = ds;
 }