using System;
using System.Collections.Generic;
using System.Text;
namespace WmData {
///
/// Event arguments for a data change event
///
public class WmDataLinkRoleChangedEventArguments : EventArgs {
private WmDataLinkRole newDataLinkRole;
private string reason;
public WmDataLinkRoleChangedEventArguments(WmDataLinkRole newDataLinkRole, string reason) {
this.newDataLinkRole = newDataLinkRole;
this.reason = reason;
}
///
/// The new role that has been assumed by the data link.
///
public WmDataLinkRole NewDataLinkRole {
get { return newDataLinkRole; }
}
///
/// Returns the reason for the new data link role
///
public string Reason {
get { return reason; }
}
}
}