예제 #1
0
 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();
 }
예제 #2
0
 public void UpdatedCashRegister(IViewCashRegister viewing)
 {
     IGyManager gymanager = Factory.CreateGyManager();
     int value = gymanager.GetCashRegisterValue();
     viewing.DisplayData(Convert.ToString(value));
 }