public static CarObserver GetInstance() { if (_instance == null) { _instance = new CarObserver(); } return(_instance); }
public CarList() { InitializeComponent(); CarObserver.GetInstance().AddNotifier(this); }
private void button4_Click(object sender, EventArgs e) { object data = "my very important text to nofify"; CarObserver.GetInstance().MakeNotification(data); }