Beispiel #1
0
        private void Timer_Tick(object sender, EventArgs e)
        {
            try
            {
                bOnline        = WorkServer.isServerStoped() == false;
                curConnections = WorkServer.cntServerConnections() + "个";

                IntPtr strPtr    = WorkServer.curConnectionsStr();
                string resultStr = Marshal.PtrToStringAnsi(strPtr);
                if (resultStr != _connectionsStr)
                {
                    _connectionsStr = resultStr;
                    tableList.Clear();
                    QueryTableCallBack(_connectionsStr, "");
                }
            }
            catch { }
        }