50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace ProfileEventViewer
|
|
{
|
|
public delegate void EventDelegate(ProfileEventDoc doc);
|
|
|
|
public class ProfileEventDoc
|
|
{
|
|
public ProfileEventData Data;
|
|
public string Name;
|
|
public string PathName;
|
|
public string FullFileName;
|
|
|
|
private ProfileEventData.ProfileContext.Event m_SelectedProfileEvent;
|
|
private ProfileEventData.ProfileContext.Data m_SelectedDataEvent;
|
|
|
|
public ProfileEventData.ProfileContext.Event SelectedProfileEvent
|
|
{
|
|
get { return m_SelectedProfileEvent; }
|
|
set
|
|
{
|
|
if (value != m_SelectedProfileEvent)
|
|
{
|
|
m_SelectedProfileEvent = value;
|
|
if (SelectedProfileEventChanged != null)
|
|
SelectedProfileEventChanged(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
public ProfileEventData.ProfileContext.Data SelectedDataEvent
|
|
{
|
|
get { return m_SelectedDataEvent; }
|
|
set
|
|
{
|
|
if (value != m_SelectedDataEvent)
|
|
{
|
|
m_SelectedDataEvent = value;
|
|
if (SelectedDataEventChanged != null)
|
|
SelectedDataEventChanged(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
public event EventDelegate SelectedProfileEventChanged;
|
|
public event EventDelegate SelectedDataEventChanged;
|
|
}
|
|
}
|