示例#1
0
        /// <summary>
        /// Custom event when OnServerStatus_MessageUpdate is called in the Server class.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        void Server_ServerStatusMessageUpdate(object sender, AbbCom.ServerCustomEventArgs args)
        {
            EnterIntoLogWindow("DataLog: ", DateTime.Now.ToString("yyyy-MM-dd-HH:mm:ss ") + ": ", args.Message);

            string s = string.Concat("DataLog:", DateTime.Now.ToString("yyyy-MM-dd-HH:mm:ss "), ": ", args.Message);

            Maf.Tools.DiskLogger.LogData(LogPath, s);
        }
示例#2
0
 /// <summary>
 /// Custom event when OnServerConnected is called in the Server class.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 void Server_ServerConnected(object sender, AbbCom.ServerCustomEventArgs args)
 {
     // Force the form to redraw
     this.Invalidate();
 }
示例#3
0
 /// <summary>
 /// Custom event when OnServerTCP_MessageUpdate is called in the Server class.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 void Server_ServerTCP_MessageUpdate(object sender, AbbCom.ServerCustomEventArgs args)
 {
 }