示例#1
0
文件: Main.cs 项目: liulee/disneycms
 public Main()
 {
     _mb_server = new MBServer();
     _cms_server = new CMS(_mb_server);
     _handler = new MBMsgHandler(_cms_server);
     InitializeComponent();
 }
示例#2
0
文件: CMS.cs 项目: liulee/disneycms
 public CMS(MBServer _mbserver)
 {
     _config = new CMSConfig();
     this._mbserver = _mbserver;    //Modbus服务.
     int dueTime = 2000; // Don't start.
     this._ccsTimer = new System.Threading.Timer(new TimerCallback(OnTimerCallback), null, dueTime, 1000);
     this.IBP = OnOff.UNKNOWN;
     this.FAS = OnOff.UNKNOWN;
 }
示例#3
0
 public ReceiveThread(MBServer server, MBConnect client)
 {
     this._client = client;
     this._server = server;
 }