mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
b02427417c
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@5614 21ef857c-d57f-4fe0-8362-d861dc6d29cd
90 lines
1.7 KiB
C#
90 lines
1.7 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace Debugger
|
|
{
|
|
[Serializable]
|
|
public class DebuggerEventArgs : EventArgs
|
|
{
|
|
object debugger;
|
|
|
|
public object Debugger
|
|
{
|
|
get {
|
|
return debugger;
|
|
}
|
|
}
|
|
|
|
public DebuggerEventArgs(object debugger)
|
|
{
|
|
this.debugger = debugger;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class ProcessEventArgs : DebuggerEventArgs
|
|
{
|
|
Process process;
|
|
|
|
public Process Process
|
|
{
|
|
get
|
|
{
|
|
return process;
|
|
}
|
|
}
|
|
|
|
public ProcessEventArgs(Process process)
|
|
: base(null)
|
|
{
|
|
this.process = process;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class MessageEventArgs : ProcessEventArgs
|
|
{
|
|
int level;
|
|
string message;
|
|
string category;
|
|
|
|
public int Level
|
|
{
|
|
get
|
|
{
|
|
return level;
|
|
}
|
|
}
|
|
|
|
public string Message
|
|
{
|
|
get
|
|
{
|
|
return message;
|
|
}
|
|
}
|
|
|
|
public string Category
|
|
{
|
|
get
|
|
{
|
|
return category;
|
|
}
|
|
}
|
|
|
|
public MessageEventArgs(Process process, string message)
|
|
: this(process, 0, message, String.Empty)
|
|
{
|
|
this.message = message;
|
|
}
|
|
|
|
public MessageEventArgs(Process process, int level, string message, string category)
|
|
: base(process)
|
|
{
|
|
this.level = level;
|
|
this.message = message;
|
|
this.category = category;
|
|
}
|
|
}
|
|
}
|