// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
namespace ICSharpCode.Core
{
///
/// Default actions, when a condition is failed.
///
public enum ConditionFailedAction {
Nothing,
Exclude,
Disable
}
///
/// Interface for single condition or complex condition.
///
public interface ICondition
{
string Name {
get;
}
///
/// Returns the action which occurs, when this condition fails.
///
ConditionFailedAction Action {
get;
set;
}
///
/// Returns true, when the condition is valid otherwise false.
///
bool IsValid(object owner);
}
}