/*
 * 2006.11.15
 * Microsoft Conference 2006
 * ‚í‚ñ‚­‚Ü“¯–¿ ƒÃƒÎƒÇƒÐƒÑƒÅƒÊƒÅ
 * MFC to Windows Forms -Multi language Document/View
 */

namespace Counter {

  public class EventArgs : System.EventArgs {
    private int count_;
    public EventArgs(int c) { count_ = c; }
    public int Count { get { return count_; } }
  }

  public delegate void Notification(object sender, EventArgs e);

  public interface ICounter {
    void Increment();
    void Decrement();
    void Clear();
    int Count { get; }
  }

  public interface IObservableCounter : ICounter {
    void AddObserver(Notification notif);
    void RemoveObserver(Notification notif);
  }

}
