public void ViewCashRegister(IViewCashRegister viewing) { IGyManager gymanager = Factory.CreateGyManager(); int value = gymanager.GetCashRegisterValue(); viewing.DisplayData(Convert.ToString(value)); ((global::GyManager.GyManager)gymanager).AddObserver(viewing); viewing.ShowForm(); }
public void UpdatedCashRegister(IViewCashRegister viewing) { IGyManager gymanager = Factory.CreateGyManager(); int value = gymanager.GetCashRegisterValue(); viewing.DisplayData(Convert.ToString(value)); }