using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ScrewTurn.Wiki.PluginFramework {
///
/// Contains arguments for Namespace activity events.
///
public class NamespaceActivityEventArgs : EventArgs {
private NamespaceInfo nspace;
private string nspaceOldName;
private NamespaceActivity activity;
///
/// Initializes a new instance of the class.
///
/// The namespace the activity refers to.
/// The old name of the renamed namespace, or null.
/// The activity.
public NamespaceActivityEventArgs(NamespaceInfo nspace, string nspaceOldName, NamespaceActivity activity) {
this.nspace = nspace;
this.nspaceOldName = nspaceOldName;
this.activity = activity;
}
///
/// Gets the namespace the activity refers to.
///
public NamespaceInfo NamespaceInfo {
get { return nspace; }
}
///
/// Gets the old name of the renamed namespace, or null.
///
public string NamespaceOldName {
get { return nspaceOldName; }
}
///
/// Gets the activity.
///
public NamespaceActivity Activity {
get { return activity; }
}
}
///
/// Lists legal namespace activity types.
///
public enum NamespaceActivity {
///
/// A namespace has been added.
///
NamespaceAdded,
///
/// A namespace has been renamed.
///
NamespaceRenamed,
///
/// A namespace has been modified.
///
NamespaceModified,
///
/// A namespace has been removed.
///
NamespaceRemoved
}
}