예제 #1
0
파일: Log.cs 프로젝트: fr1tz/vjoy-server
        public void AddEntry(string msg)
        {
            msg       = string.Format("{0}   {1}\n", DateTime.Now, msg.Trim());
            this.log += msg;
            NewLogEntryEventArgs e = new NewLogEntryEventArgs(msg);

            OnNewLogEntry(e);
        }
예제 #2
0
 private void NewLogEntry(object sender, NewLogEntryEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke((MethodInvoker) delegate
         {
             NewLogEntry(sender, e);
         });
         return;
     }
     AppendLog(e.Msg);
     Program.Log.Clear();
 }
예제 #3
0
파일: Log.cs 프로젝트: fr1tz/vjoy-server
 protected virtual void OnNewLogEntry(NewLogEntryEventArgs e)
 {
     NewLogEntry?.Invoke(this, e);
 }