Ejemplo n.º 1
0
 public void Show(UCFregments fregment, Dao.SuperDao dao)
 {
     ISuperBusiness next = _businesses.Find(b => b.Code == fregment);
     if (next == null) return;
     next.SetParent(_currentBusiness);
     _currentBusiness = next;
     _currentBusiness.Show();
     _currentBusiness.Load(dao);
 }
Ejemplo n.º 2
0
 public void Back()
 {
     if (_currentBusiness == null || _currentBusiness.Parent == null) return;
     _currentBusiness.Hide();
     _currentBusiness = _currentBusiness.Parent;
     if (_currentBusiness.Code == UCFregments.Container)
     {
         ReqWebSocket.Instance.Close();
         _currentBusiness.Load(null);
         Show(UCFregments.Login, null);
     }
 }
Ejemplo n.º 3
0
 public virtual void SetParent(ISuperBusiness parent)
 {
     _parent = parent;
 }