Created
July 3, 2012 19:16
-
-
Save pietervp/3042110 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ActivatableLogic : LogicBase<IActivatableEntity>, IActivatableEntityLogic | |
{ | |
public void Active() | |
{ | |
CurrentInstance.IsActive = true; | |
} | |
public void DeActivate() | |
{ | |
CurrentInstance.IsActive = false; | |
} | |
} | |
[MData] | |
public interface IActivatableEntity : IActivatableEntityLogic | |
{ | |
bool IsActive { get; set; } | |
} | |
public interface IActivatableEntityLogic | |
{ | |
void Active(); | |
void DeActivate(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment