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
/// <summary> | |
/// Observer class | |
/// </summary> | |
abstract class Observer | |
{ | |
public abstract void notify(string eventName, object eventValue); | |
} | |
/// <summary> | |
/// Observable class |
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
abstract class WindowAbstract | |
{ | |
/// <summary> | |
/// a dictionary that will store all method names and their delegate/function pointer information | |
/// </summary> | |
protected Dictionary<string, Delegate> callbacks = new Dictionary<string, Delegate>(); | |
/// <summary> | |
/// Dynamically execute a function from the Dictionary/Array of callbacks | |
/// </summary> |