示例#1
0
        public TcpServer(int port, IntPtr guiHandle, NotifyIcon notifyIcon)
        {
            this.tcpPort = port;
            this.guiHandle = guiHandle;
            this.notifyIcon = notifyIcon;
            this.clients = new List<TcpClient>();
            this.mouseUtils = new MouseUtils();
            this.monitorUtils = new MonitorUtils(guiHandle);
            this.performanceUtils = new PerformanceUtils();

            this.AutoSendInterval = 10;
            autoSendTimer = new System.Windows.Forms.Timer();
            autoSendTimer.Interval = AutoSendInterval;
            this.autoSendTimer.Tick += new EventHandler(SendTimedMessages);
            autoSendTimer.Enabled = true;
        }
示例#2
0
        public TcpServer(int port, IntPtr guiHandle, NotifyIcon notifyIcon)
        {
            this.tcpPort          = port;
            this.guiHandle        = guiHandle;
            this.notifyIcon       = notifyIcon;
            this.clients          = new List <TcpClient>();
            this.mouseUtils       = new MouseUtils();
            this.monitorUtils     = new MonitorUtils(guiHandle);
            this.performanceUtils = new PerformanceUtils();

            this.AutoSendInterval    = 10;
            autoSendTimer            = new System.Windows.Forms.Timer();
            autoSendTimer.Interval   = AutoSendInterval;
            this.autoSendTimer.Tick += new EventHandler(SendTimedMessages);
            autoSendTimer.Enabled    = true;
        }