// Add the moduel ui form into the moduel stack private void AddToModuelStack(string uiName, BaseUIForm uIForm) { // Check if there exist ui forms in the stack // and freeze the previous form if (_moduelFormsStack.Count > 0) { BaseUIForm preForm = _moduelFormsStack.Peek(); preForm.Freeze(); } _moduelFormsStack.Push(uIForm); uIForm.Display(); }
// Add the hide other forms into the qeueu of current show forms private void AddToHideOthers(string uiName, BaseUIForm uiForm) { // Hide all the other forms foreach (BaseUIForm item in _allFormsCach.Values) { item.Hide(); } foreach (BaseUIForm item in _moduelFormsStack) { item.Hide(); } // Add current form into the queue of show forms _showFormsCach.Add(uiName, uiForm); uiForm.Display(); }
// Add the ui form into the queue of current shown forms private void AddToCurrentShow(string uiName, BaseUIForm uiForm) { _showFormsCach.Add(uiName, uiForm); uiForm.Display(); }